using System.ComponentModel; using System.ComponentModel.DataAnnotations; using DS.Module.Core; using DS.Module.Core.Data; using SqlSugar; namespace DS.WMS.Core.Sys.Entity; /// /// 系统参数表 /// [SqlSugar.SugarTable("sys_config")] public class SysConfig: BaseTenantModel { /// /// 名称 /// [Required, MaxLength(100)] [SugarColumn(ColumnDescription = "名称",Length =100)] public string Name { get; set; } /// /// 编码 /// [Required, MaxLength(100)] [SugarColumn(ColumnDescription = "编码", IsNullable = true, Length = 100)] public string Code { get; set; } /// /// 属性值 /// [MaxLength(100)] [SugarColumn(ColumnDescription = "属性值", IsNullable = true, Length = 100)] public string Value { get; set; } /// /// 常量所属分类的编码,来自于“常量的分类”字典 /// [SugarColumn(ColumnDescription = "常量所属分类的编码", IsNullable = true, Length = 100)] public string GroupCode { get; set; } /// /// 是否系统参数 0否 1是 /// [Description("是否系统参数 0否 1是")] public bool IsSysFlag { get; set; } = false; /// /// 排序 /// [SugarColumn(ColumnDescription = "排序")] public int? OrderNo { get; set; } = 100; /// /// 状态 /// [SugarColumn(ColumnDescription = "状态")] public StatusEnum? Status { get; set; } = StatusEnum.Enable; }