common.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. package model
  2. const (
  3. RepeatedPrompts = "编码不能重复,请重新填写!"
  4. GatewayHasRelation = "该网关存在关联设备,请先移除设备!"
  5. RepeatedName = "列表中存在重名,请更改灯杆分组名称!"
  6. ZigbeeSelect = "集中器(ZigBee)选取异常!"
  7. ControlNONull = "编号不能为空!!"
  8. ControlNOInvalid = "编号不符合规则,最小值为1-1,最大值为255-255!"
  9. EnableInvalid = "启用禁用参数错误"
  10. ParamsInvalid = "非法参数!"
  11. TypeInvalid = "非法类型!"
  12. )
  13. const (
  14. ControlType_Default = iota // 灯控
  15. ControlType_NBIoT //NB-IoT
  16. ControlType_485 //485灯控
  17. ControlType_ZigBee //ZigBee
  18. ControlType_ZigBeeHL //ZigBeeHL
  19. )
  20. const (
  21. Enable_Enable = 1 // 启用
  22. Enable_Disable = 2 //停用
  23. )
  24. const (
  25. CameraTypeBall = 1 //球机
  26. CameraTypeGun = 2 //枪机
  27. CameraTypeBallName = "球机"
  28. CameraTypeGunName = "枪机"
  29. )
  30. const (
  31. TypeCapture = "capture"
  32. TypePoint = "point"
  33. )
  34. //redis
  35. const (
  36. AlarmList = "%d:AlarmList:GetList"
  37. LampPoleGroupList = "%d:LampPoleGroupList:GetList"
  38. GroupFiltrationList = "%d:GroupFiltrationList:GetList"
  39. GarbageList = "%d:GarbageList:GetList"
  40. GarbageWayGroupList = "%d:GarbageWayGroupList:GetList"
  41. OnDemandGroupList = "%d:OnDemandGroupList:GetList"
  42. SwitchBoxList = "%d:SwitchBoxList:GetList"
  43. TransformerList = "%d:TransformerList:GetList"
  44. GatewayList = "%d:GatewayList:GetList"
  45. )
  46. //Operation type 操作类型
  47. const (
  48. OperationDefault = iota
  49. OperationLogin //登录
  50. OperationLogout //注销
  51. OperationCreate //新增
  52. OperationUpdate //修改
  53. OperationRemove //删除
  54. OperationImport //导入导出
  55. OperationLightStrategy //开关灯控策略
  56. OperationOrderCreate //工单发起
  57. OperationOrderChange //工单转派
  58. OperationOrderHandle //工单处理
  59. OperationProgramPublish //节目发布待审核
  60. OperationProgramResult //节目处理结果
  61. OperationStrategyRelation //策略关联
  62. OperationControl //操作
  63. OperationAlarmHandle //告警处理
  64. OperationOrderFinish //工单签收(接单)
  65. )
  66. const (
  67. ModuleTypeDefault = iota //操作记录模块
  68. ModuleTypeDevice //设备台账管理
  69. ModuleTypeInfoBar //信息发布系统
  70. ModuleTypeOrder //工单运维
  71. ModuleTypeNotification //通知公告
  72. ModuleTypeLightStrategy //照明策略
  73. ModuleTypeLighting //智慧照明系统-智能照明
  74. ModuleTypeSystem //系统管理
  75. ModuleTypeAlarm //告警管理
  76. ModuleTypeOperation //运营分析
  77. ModuleTypeRecord //记录处理
  78. ModuleTypeWisdomLighting //智能感应照明系统-灯随车走照明控制
  79. )
  80. type AlarmTerminal struct {
  81. }
  82. type CaptureUnit struct {
  83. }
  84. type Gateway struct {
  85. }
  86. type IpBroadcast struct {
  87. }
  88. type LightControl struct {
  89. }
  90. type Sensor struct {
  91. }
  92. type Zigbee struct {
  93. }
  94. type OptoSensor struct {
  95. }
  96. type Camera struct {
  97. }
  98. type SwitchBox struct {
  99. }
  100. type InfoBoard struct {
  101. }