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.

61 lines
2.0 KiB

8 months ago
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Text.Json.Serialization;
  5. namespace Mirle.Component.Database.Model.WES
  6. {
  7. /// <summary>
  8. /// 歷史通訊紀錄類別
  9. /// </summary>
  10. [Table("HIS_COMMUNICATION_LOG")]
  11. public class HisCommunicationLogDto
  12. {
  13. /// <summary>
  14. /// 時間戳記
  15. /// </summary>
  16. [Column(Name = "TIMETICK")]
  17. [Required, JsonPropertyName("TIMETICK"), JsonPropertyOrder(1)]
  18. public DateTime TIMETICK { get; set; }
  19. /// <summary>
  20. /// 服務端
  21. /// </summary>
  22. [Column(Name = "HOST")]
  23. [Required, StringLength(7), JsonPropertyName("HOST"), JsonPropertyOrder(2)]
  24. public string HOST { get; set; }
  25. /// <summary>
  26. /// 客戶端
  27. /// </summary>
  28. [Column(Name = "CLIENT")]
  29. [Required, StringLength(7), JsonPropertyName("CLIENT"), JsonPropertyOrder(3)]
  30. public string CLIENT { get; set; }
  31. /// <summary>
  32. /// 訊息編號
  33. /// </summary>
  34. [Column(Name = "MESSAGE_ID")]
  35. [Required, JsonPropertyName("MESSAGE_ID"), JsonPropertyOrder(4)]
  36. public string MESSAGE_ID { get; set; }
  37. /// <summary>
  38. /// 訊息內容
  39. /// </summary>
  40. [Column(Name = "MESSAGE_CONTENT")]
  41. [JsonPropertyName("MESSAGE_CONTENT"), JsonPropertyOrder(5)]
  42. public string MESSAGE_CONTENT { get; set; }
  43. /// <summary>
  44. /// 傳送狀態
  45. /// </summary>
  46. /// <value>
  47. /// 0 = Success <br/>
  48. /// 1 = Failed <br/>
  49. /// </value>
  50. [Column(Name = "STATUS")]
  51. [Required, JsonPropertyName("STATUS"), JsonPropertyOrder(6)]
  52. public int STATUS { get; set; }
  53. /// <summary>
  54. /// 程式名稱
  55. /// </summary>
  56. [Column(Name = "PROGRAM_NAME")]
  57. [Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(7)]
  58. public string PROGRAM_NAME { get; set; }
  59. }
  60. }