SysBase.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using MiniExcelLibs.Attributes;
  2. using Newtonsoft.Json;
  3. namespace Model
  4. {
  5. //[EpplusTable(PrintHeaders = true, AutofitColumns = true, AutoCalculate = true, ShowTotal = true)]
  6. public class SysBase
  7. {
  8. /// <summary>
  9. /// ID
  10. /// </summary>
  11. [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
  12. public int Id { get; set; }
  13. /// <summary>
  14. /// 排序
  15. /// </summary>
  16. [SugarColumn(ColumnDescription = "排序", DefaultValue = "0", ColumnName = "sort")]
  17. public int Sort { get; set; }
  18. /// <summary>
  19. /// 状态
  20. /// </summary>
  21. [SugarColumn(ColumnDescription = "状态", DefaultValue = "0", ColumnName = "status")]
  22. public int Status { get; set; }
  23. /// <summary>
  24. /// 版本号
  25. /// </summary>
  26. [SugarColumn(ColumnDescription = "版本号", DefaultValue = "0", ColumnName = "version")]
  27. public int Version { get; set; }
  28. /// <summary>
  29. /// 发布时间
  30. /// </summary>
  31. [SugarColumn(ColumnDescription = "发布时间", ColumnName = "create_date")]
  32. public DateTime? CreateDate { get; set; }
  33. /// <summary>
  34. /// 更新时间
  35. /// </summary>
  36. [SugarColumn(ColumnDescription = "更新时间", ColumnName = "update_date")]
  37. public DateTime? UpdateDate { get; set; }
  38. }
  39. }