平安校园
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.
 
 
 
 
 
 

57 lines
1.2 KiB

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