common.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. )
  12. const (
  13. ControlType_Default = iota // 灯控
  14. ControlType_NBIoT //NB-IoT
  15. ControlType_485 //485灯控
  16. ControlType_ZigBee //ZigBee
  17. ControlType_ZigBeeHL //ZigBeeHL
  18. )
  19. const (
  20. Enable_Enable = 1 // 启用
  21. Enable_Disable = 2 //停用
  22. )
  23. const (
  24. CameraType_Ball = 1 //球机
  25. CameraType_Gun = 2 //枪机
  26. CameraType_Ball_Name = "球机"
  27. CameraType_Gun_Name = "枪机"
  28. )
  29. type AlarmTerminal struct {
  30. }
  31. type CaptureUnit struct {
  32. }
  33. type Gateway struct {
  34. }
  35. type IpBroadcast struct {
  36. }
  37. type LightControl struct {
  38. }
  39. type Sensor struct {
  40. }
  41. type Zigbee struct {
  42. }
  43. type OptoSensor struct {
  44. }
  45. type Camera struct {
  46. }
  47. type SwitchBox struct {
  48. }
  49. type InfoBoard struct {
  50. }