CcsActionAddress.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using IMCS_CCS.Utils;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace IMCS.CCS.Entitys
  5. {
  6. [Table("ccs_action_address")]
  7. public class CcsActionAddress
  8. {
  9. [Key]
  10. [Column("id")]
  11. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  12. public int Id { get; set; }
  13. [Column("action_id")]
  14. public int ActionId { get; set; }
  15. [Column("type")]
  16. public string Type { get; set; }
  17. [Column("address")]
  18. public string Address { get; set; }
  19. [Column("address_type")]
  20. public string AddressType { get; set; }
  21. [Column("value")]
  22. public string Value { get; set; }
  23. [Column("check_type")]
  24. public bool CheckType { get; set; }
  25. [Column("sort")]
  26. public int Sort { get; set; }
  27. [Column("description")]
  28. public string Description { get; set; }
  29. }
  30. /// <summary>
  31. /// 动作地址类型
  32. /// </summary>
  33. public enum ActionAddressTypeEnum
  34. {
  35. [EnumDescription("写入")]
  36. WRITE,
  37. [EnumDescription("读取")]
  38. READ,
  39. [EnumDescription("写入校验下一个是否条件写入")]
  40. WRITE_CHECK,
  41. [EnumDescription("校验")]
  42. CHECK,
  43. [EnumDescription("回调前校验")]
  44. CALLBACK_CHECK,
  45. [EnumDescription("回调")]
  46. CALLBACK,
  47. [EnumDescription("失败回调")]
  48. CALLBACK_FAIL,
  49. [EnumDescription("回调复位")]
  50. RESET,
  51. [EnumDescription("校验写入是否成功")]
  52. CHECK_SUCESS,
  53. }
  54. }