using SqlSugar; using Yi.Framework.Infrastructure.Data.Auditing; using Yi.Framework.Infrastructure.Data.Entities; using Yi.Framework.Infrastructure.Ddd.Entities; namespace Yi.Framework.Module.DictionaryManager.Entities { [SugarTable("Dictionary")] public class DictionaryEntity : AuditedObject, IEntity, ISoftDelete, IOrderNum, IState { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true)] public long Id { get; set; } /// /// 逻辑删除 /// public bool IsDeleted { get; set; } /// /// 排序 /// public int OrderNum { get; set; } = 0; /// /// 状态 /// public bool State { get; set; } = true; /// /// 描述 /// [SugarColumn(ColumnName = "Remark")] public string? Remark { get; set; } /// /// tag类型 /// [SugarColumn(ColumnName = "ListClass")] public string? ListClass { get; set; } /// /// tagClass /// [SugarColumn(ColumnName = "CssClass")] public string? CssClass { get; set; } /// /// 字典类型 /// [SugarColumn(ColumnName = "DictType")] public string DictType { get; set; } = string.Empty; /// /// 字典标签 /// [SugarColumn(ColumnName = "DictLabel")] public string? DictLabel { get; set; } /// /// 字典值 /// [SugarColumn(ColumnName = "DictValue")] public string DictValue { get; set; } = string.Empty; /// /// 是否为该类型的默认值 /// [SugarColumn(ColumnName = "IsDefault")] public bool IsDefault { get; set; } } }