SysBase.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. namespace ZR.Model.System
  2. {
  3. public class SysBase
  4. {
  5. /// <summary>
  6. /// 创建人
  7. /// </summary>
  8. [SugarColumn(IsOnlyIgnoreUpdate = true, Length = 64, IsNullable = true)]
  9. [JsonProperty(propertyName: "createBy")]
  10. [ExcelIgnore]
  11. public string Create_by { get; set; }
  12. /// <summary>
  13. /// 创建时间
  14. /// </summary>
  15. [SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, InsertServerTime = true)]
  16. [JsonProperty(propertyName: "createTime")]
  17. [ExcelColumn(Format = "yyyy-MM-dd HH:mm:ss")]
  18. public DateTime Create_time { get; set; } = DateTime.Now;
  19. /// <summary>
  20. /// 更新人
  21. /// </summary>
  22. [JsonIgnore]
  23. [JsonProperty(propertyName: "updateBy")]
  24. [SugarColumn(IsOnlyIgnoreInsert = true, Length = 64, IsNullable = true)]
  25. [ExcelIgnore]
  26. public string Update_by { get; set; }
  27. /// <summary>
  28. /// 更新时间
  29. /// </summary>
  30. //[JsonIgnore]
  31. [SugarColumn(IsOnlyIgnoreInsert = true, IsNullable = true, UpdateServerTime = true)]
  32. [JsonProperty(propertyName: "updateTime")]
  33. [ExcelIgnore]
  34. public DateTime? Update_time { get; set; }
  35. [SugarColumn(Length = 500)]
  36. public string Remark { get; set; }
  37. }
  38. }