WcsActionAddress.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. 
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using WCS.Utils;
  5. namespace WCS.Entitys
  6. {
  7. [Table("wcs_action_address")]
  8. public class WcsActionAddress
  9. {
  10. [Key]
  11. [Column("id")]
  12. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  13. public int Id { get; set; }
  14. [Column("action_id")]
  15. public int ActionId { get; set; }
  16. [Column("type")]
  17. public string? Type { get; set; }
  18. [Column("address")]
  19. public string? Address { get; set; }
  20. [Column("value")]
  21. public string? Value { get; set; }
  22. [Column("check_type")]
  23. public bool CheckType { get; set; }
  24. [Column("sort")]
  25. public int Sort { get; set; }
  26. }
  27. public enum ActionAddressTypeEnum
  28. {
  29. [EnumDescription("写入")]
  30. WRITE,
  31. [EnumDescription("写入校验下一个是否条件写入")]
  32. WRITE_CHECK,
  33. [EnumDescription("校验")]
  34. CHECK,
  35. [EnumDescription("回调")]
  36. CALLBACK,
  37. [EnumDescription("失败回调")]
  38. CALLBACK_FAIL,
  39. [EnumDescription("回调复位")]
  40. RESET,
  41. [EnumDescription("校验写入是否成功")]
  42. CHECK_SUCESS,
  43. }
  44. }