common.go 1.0 KB

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