平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SysDict.cs 1.2 KiB

4 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 字典
  6. ///</summary>
  7. [SugarTable("sys_dict", TableDescription = "字典表")]
  8. [Tenant(SqlSugarConst.DB_DEFAULT)]
  9. public class SysDict : BaseEntity
  10. {
  11. /// <summary>
  12. /// 父id
  13. ///</summary>
  14. [SugarColumn(ColumnName = "ParentId", ColumnDescription = "父id")]
  15. public virtual long ParentId { get; set; }
  16. /// <summary>
  17. /// 字典文字
  18. ///</summary>
  19. [SugarColumn(ColumnName = "DictLabel", ColumnDescription = "字典文字", Length = 200)]
  20. public virtual string DictLabel { get; set; }
  21. /// <summary>
  22. /// 字典值
  23. ///</summary>
  24. [SugarColumn(ColumnName = "DictValue", ColumnDescription = "字典值", Length = 200)]
  25. public virtual string DictValue { get; set; }
  26. /// <summary>
  27. /// 分类
  28. ///</summary>
  29. [SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)]
  30. public virtual string Category { get; set; }
  31. /// <summary>
  32. /// 排序码
  33. ///</summary>
  34. [SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码")]
  35. public int SortCode { get; set; }
  36. /// <summary>
  37. /// 子节点
  38. /// </summary>
  39. [SugarColumn(IsIgnore = true)]
  40. public List<SysDict> Children { get; set; }
  41. }