lightControl.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package model
  2. import (
  3. "iot_manager_service/app/dao"
  4. )
  5. type LightControlDetail struct {
  6. dao.LightControl
  7. IsCrossName string `json:"isCrossName"` //是否路口名称
  8. TagName string `json:"tagName"` //标签(中文)
  9. ProvincesName string `json:"provincesName"` //省市区组合地址
  10. GatewaySn string `json:"gatewaySn"` //网关编码
  11. BoxSn string `json:"boxSn"` //配电箱编码
  12. RunState string `json:"runState"` //运行状态
  13. PoleGroupName string `json:"poleGroupName"` //灯杆分组名称
  14. BoxName string `json:"boxName"` //配电箱名称
  15. AlarmTerminalList []AlarmTerminal `json:"akeyAlarmTerminalList"` //一键告警集合
  16. CameraList []Camera `json:"cameraList"` //摄像头集合
  17. CaptureUnitList []CaptureUnit `json:"captureUnitList"` //抓拍单元集合
  18. GatewayList []Gateway `json:"gatewayList"` //网关集合
  19. InfoBoardList []InfoBoard `json:"infoBoardList"` //信息屏集合
  20. IpBroadcastList []IpBroadcast `json:"ipBroadcastList"` //IP音柱集合
  21. LightControlList []LightControl `json:"lightControlList"` //灯控集合
  22. SensorList []Sensor `json:"sensorList"` //环境监测集合
  23. ZigbeeList []Zigbee `json:"zigbeeList"` //ZigBee集合
  24. }
  25. type RspLightControlList struct {
  26. Records []LightControlDetail `json:"records"` //记录列表
  27. Current int `json:"current"` //当前分页
  28. Size int `json:"size"` //每页数量
  29. Total int `json:"total"` //总数
  30. Pages int `json:"pages"` //总页数
  31. }
  32. type ReqLightControlRemove struct {
  33. IDs int `json:"ids"` //分组编码
  34. Name string `json:"name"` //名称
  35. }
  36. type ReqLightControlEnable struct {
  37. ID int `json:"id"` //编码
  38. Status int `json:"status"` //启用禁用:1启用2禁用
  39. Name int `json:"name"` //名称
  40. SN int `json:"sn"` //sn
  41. }
  42. type ReqLightControlSwitch struct {
  43. HandSwitch int `json:"handSwitch"` //开关要更改的状态1=开启2=关闭
  44. HandTime int `json:"handTime"` //手动控制时间(分钟)
  45. Luminance int `json:"luminance"` //灯光亮度
  46. Explain string `json:"explain"` // 更改说明
  47. Name string `json:"name"` //名称
  48. SN string `json:"sn"` //SN
  49. }