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.

23 lines
680 B

8 months ago
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.Text.Json.Serialization;
  4. namespace Mirle.Component.API.WarehouseExecutionSystem.Models
  5. {
  6. /// <summary>
  7. /// 通用訊息類別
  8. /// </summary>
  9. public class CommonMessage
  10. {
  11. /// <summary>
  12. /// 時間戳記
  13. /// </summary>
  14. [Required, JsonPropertyName("timetick"), JsonPropertyOrder(1)]
  15. public DateTime Timetick { get; set; }
  16. /// <summary>
  17. /// 交易名稱
  18. /// </summary>
  19. [Required, StringLength(5), JsonPropertyName("transaction_name"), JsonPropertyOrder(2)]
  20. public string TransactionName { get; set; }
  21. }
  22. }