common.go 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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 = "AlarmList_GetList_%s"
  37. LampPoleGroupList = "LampPoleGroupList_GetList_%s"
  38. GroupFiltrationList = "GroupFiltrationList_GetList_%s"
  39. GarbageList = "GarbageList_GetList_%s"
  40. GarbageWayGroupList = "GarbageWayGroupList_GetList_%s"
  41. OnDemandGroupList = "OnDemandGroupList_GetList_%s"
  42. SwitchBoxList = "switchBoxList_GetList_%s"
  43. TransformerList = "TransformerList_GetList_%s"
  44. WisdomGatewayList = "WisdomGatewayList_GetList_%s"
  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. const (
  81. OperationLoginStr = "登录"
  82. OperationLogoutStr = "注销"
  83. OperationCreateStr = "新增"
  84. OperationUpdateStr = "修改"
  85. OperationRemoveStr = "删除"
  86. OperationImportStr = "导入导出"
  87. OperationLightStrategyStr = "开关灯控策略"
  88. OperationOrderCreateStr = "工单发起"
  89. OperationOrderChangeStr = "工单转派"
  90. OperationOrderHandleStr = "工单处理"
  91. OperationProgramPublishStr = "节目发布待审核"
  92. OperationProgramResultStr = "节目处理结果"
  93. OperationStrategyRelationStr = "策略关联"
  94. OperationControlStr = "操作"
  95. OperationAlarmHandleStr = "告警处理"
  96. OperationOrderFinishStr = "工单签收(接单)"
  97. )
  98. const (
  99. ModuleTypeDeviceStr = "设备台账管理"
  100. ModuleTypeInfoBarStr = "信息发布系统"
  101. ModuleTypeOrderStr = "工单运维"
  102. ModuleTypeNotificationStr = "通知公告"
  103. ModuleTypeLightStrategyStr = "照明策略"
  104. ModuleTypeLightingStr = "智慧照明系统-智能照明"
  105. ModuleTypeSystemStr = "系统管理"
  106. ModuleTypeAlarmStr = "告警管理"
  107. ModuleTypeOperationStr = "运营分析"
  108. ModuleTypeRecordStr = "记录处理"
  109. ModuleTypeWisdomLightingStr = "智能感应照明系统-灯随车走照明控制"
  110. )
  111. type AlarmTerminal struct {
  112. }
  113. type CaptureUnit struct {
  114. }
  115. type Gateway struct {
  116. }
  117. type IpBroadcast struct {
  118. }
  119. type LightControl struct {
  120. }
  121. type Sensor struct {
  122. }
  123. type Zigbee struct {
  124. }
  125. type OptoSensor struct {
  126. }
  127. type Camera struct {
  128. }
  129. type SwitchBox struct {
  130. }
  131. type InfoBoard struct {
  132. }