CcsActionAddress.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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("value")]
  20. public string Value { get; set; }
  21. [Column("check_type")]
  22. public bool CheckType { get; set; }
  23. [Column("sort")]
  24. public int Sort { get; set; }
  25. [Column("description")]
  26. public string Description { get; set; }
  27. }
  28. /// <summary>
  29. /// 动作地址类型
  30. /// </summary>
  31. public enum ActionAddressTypeEnum
  32. {
  33. [EnumDescription("写入")]
  34. WRITE,
  35. [EnumDescription("二次写入")]
  36. WRITE_SECOND,
  37. [EnumDescription("写入校验下一个是否条件写入")]
  38. WRITE_CHECK,
  39. [EnumDescription("校验")]
  40. CHECK,
  41. [EnumDescription("校验")]
  42. CHECK_GET,
  43. [EnumDescription("校验")]
  44. CHECK_SEND,
  45. [EnumDescription("回调")]
  46. CALLBACK,
  47. [EnumDescription("失败回调")]
  48. CALLBACK_FAIL,
  49. [EnumDescription("回调复位")]
  50. RESET,
  51. [EnumDescription("校验写入是否成功")]
  52. CHECK_SUCESS,
  53. }
  54. }