gateway.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package model
  2. import (
  3. "iot_manager_service/app/device/dao"
  4. )
  5. type GatewayDetail struct {
  6. dao.Gateway
  7. CountLampPole int `json:"countLampPole"` //关联设备数 //todo 修改返回名
  8. EndLineTime string `json:"endLineTime"` //最后上线时间
  9. NetworkState int `json:"networkState"` //网络状态
  10. RunState int `json:"runState"` //运行状态
  11. Cpu string `json:"cpu"` //CPU占有率
  12. Memory string `json:"memory"` //内存占有率
  13. AlarmTerminalList []dao.AlarmTerminal `json:"akeyAlarmTerminalList"` //一键告警集合
  14. CameraList []dao.CameraDevice `json:"cameraList"` //摄像头集合
  15. CaptureUnitList []dao.CaptureUnit `json:"captureUnitList"` //抓拍单元集合
  16. InfoBoardList []dao.InfoBoard `json:"infoBoardList"` //信息屏集合
  17. IpBroadcastList []dao.IpBroadcast `json:"ipBroadcastList"` //IP音柱集合
  18. LightControlList []dao.LightControl `json:"lightControlList"` //灯控集合
  19. ZigbeeList []dao.Zigbee `json:"zigbeeList"` //ZigBee集合
  20. OptoSensorList []dao.OptoSensor `json:"optoSensorList"` //气象站集合
  21. }
  22. type RspGatewayList struct {
  23. Records []GatewayDetail `json:"records"` //记录列表
  24. Current int `json:"current"` //当前分页
  25. Size int `json:"size"` //每页数量
  26. Total int `json:"total"` //总数
  27. Pages int `json:"pages"` //总页数
  28. }
  29. type ReqGatewayRemove struct {
  30. IDs int `json:"ids"` //分组编码
  31. SN int `json:"sn"` //sn
  32. Name string `json:"name"` //名称
  33. }