CcsActionAddress.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. }
  26. /// <summary>
  27. /// 动作地址类型
  28. /// </summary>
  29. public enum ActionAddressTypeEnum
  30. {
  31. [EnumDescription("写入")]
  32. WRITE,
  33. [EnumDescription("写入校验下一个是否条件写入")]
  34. WRITE_CHECK,
  35. [EnumDescription("校验")]
  36. CHECK,
  37. [EnumDescription("回调")]
  38. CALLBACK,
  39. [EnumDescription("失败回调")]
  40. CALLBACK_FAIL,
  41. [EnumDescription("回调复位")]
  42. RESET,
  43. [EnumDescription("校验写入是否成功")]
  44. CHECK_SUCESS,
  45. }
  46. }