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.

44 lines
1.4 KiB

8 months ago
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.Text.Json.Serialization;
  4. namespace Mirle.Component.Database.Model.Warroom.Config
  5. {
  6. /// <summary>
  7. /// 基本資料通用類別
  8. /// </summary>
  9. public class CommonDto
  10. {
  11. /// <summary>
  12. /// 建立人員
  13. /// </summary>
  14. [Column(Name = "create_user"), JsonPropertyName("create_user"), Required]
  15. public string CreateUser { get; set; } = "Admin";
  16. /// <summary>
  17. /// 建立時間
  18. /// </summary>
  19. [Column(Name = "create_time"), JsonPropertyName("create_time")]
  20. public DateTime CreateTime { get; set; } = DateTime.Now;
  21. /// <summary>
  22. /// 更新人員
  23. /// </summary>
  24. [Column(Name = "update_user"), JsonPropertyName("update_user")]
  25. public string UpdateUser { get; set; } = "Admin";
  26. /// <summary>
  27. /// 更新時間
  28. /// </summary>
  29. [Column(Name = "update_time"), JsonPropertyName("update_time")]
  30. public DateTime UpdateTime { get; set; } = DateTime.Now;
  31. /// <summary>
  32. /// 資料狀態
  33. /// </summary>
  34. /// <value>
  35. /// 0 = Insert <br/>
  36. /// 1 = Update <br/>
  37. /// 2 = Disable <br/>
  38. /// 3 = Remove <br/>
  39. /// </value>
  40. [Column(Name = "status"), JsonPropertyName("status")]
  41. public int Status { get; set; } = 0;
  42. }
  43. }