30 lines
		
	
	
		
			843 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			843 B
		
	
	
	
		
			C#
		
	
	
	
using Newtonsoft.Json;
 | 
						|
using SqlSugar;
 | 
						|
 | 
						|
namespace LY.App.Model
 | 
						|
{
 | 
						|
    public class BaseEntity
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        /// ID
 | 
						|
        ///   精度原因,返回前端时要转成字符串
 | 
						|
        /// </summary>
 | 
						|
        [SugarColumn(IsNullable = false, IsPrimaryKey = true)]
 | 
						|
        [JsonConverter(typeof(ValueToStringConverter))]
 | 
						|
        public long Id { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 创建时间
 | 
						|
        /// </summary>
 | 
						|
        [SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
 | 
						|
        public virtual DateTime CreateTime { get; set; } = DateTime.Now;
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 是否删除
 | 
						|
        /// </summary>
 | 
						|
        [SugarColumn(IsNullable = true, ColumnDescription = "是否删除", DefaultValue = "0")]
 | 
						|
        [JsonIgnore]
 | 
						|
        public bool IsDeleted { get; set; }
 | 
						|
    }
 | 
						|
}
 |