common.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. type AlarmTerminal struct {
  24. }
  25. type CaptureUnit struct {
  26. }
  27. type Gateway struct {
  28. }
  29. type IpBroadcast struct {
  30. }
  31. type LightControl struct {
  32. }
  33. type Sensor struct {
  34. }
  35. type Zigbee struct {
  36. }
  37. type OptoSensor struct {
  38. }
  39. type Camera struct {
  40. }
  41. type SwitchBox struct {
  42. }
  43. type InfoBoard struct {
  44. }