common.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. )