lightControl.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package model
  2. import (
  3. "iot_manager_service/app/device/dao"
  4. )
  5. type LightControlDetail struct {
  6. dao.LightControl
  7. EndLineTime string `json:"endLineTime"` //最后上线时间
  8. NetworkState int `json:"networkState"` //网络状态
  9. RunState int `json:"runState"` //运行状态
  10. }
  11. type RspLightControlList struct {
  12. Records []LightControlDetail `json:"records"` //记录列表
  13. Current int `json:"current"` //当前分页
  14. Size int `json:"size"` //每页数量
  15. Total int `json:"total"` //总数
  16. Pages int `json:"pages"` //总页数
  17. }
  18. type ReqLightControlRemove struct {
  19. IDs int `json:"ids"` //分组编码
  20. Name string `json:"name"` //名称
  21. }
  22. type ReqLightControlEnable struct {
  23. ID int `json:"id"` //编码
  24. Status int `json:"status"` //启用禁用:1启用2禁用
  25. Name int `json:"name"` //名称
  26. SN int `json:"sn"` //sn
  27. }
  28. type ReqLightControlSwitch struct {
  29. HandSwitch int `json:"handSwitch"` //开关要更改的状态1=开启2=关闭
  30. HandTime int `json:"handTime"` //手动控制时间(分钟)
  31. Luminance int `json:"luminance"` //灯光亮度
  32. Explain string `json:"explain"` // 更改说明
  33. Name string `json:"name"` //名称
  34. SN string `json:"sn"` //SN
  35. }