common.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. type AlarmTerminal struct {
  35. }
  36. type CaptureUnit struct {
  37. }
  38. type Gateway struct {
  39. }
  40. type IpBroadcast struct {
  41. }
  42. type LightControl struct {
  43. }
  44. type Sensor struct {
  45. }
  46. type Zigbee struct {
  47. }
  48. type OptoSensor struct {
  49. }
  50. type Camera struct {
  51. }
  52. type SwitchBox struct {
  53. }
  54. type InfoBoard struct {
  55. }