LightStrategy.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package model
  2. import "iot_manager_service/app/device/dao"
  3. //灯控策略
  4. type LightStrategyDetail struct {
  5. dao.LightStrategy
  6. LightType string `json:"lightType"` //策略类型
  7. LightConditionList []dao.LightCondition `json:"lightConditionList"` //光照条件
  8. LightConditionDetailList []LightConditionDetail `json:"lightConditionVOList"` //详情-光照条件
  9. TimeConditionDetailList []TimeConditionDetail `json:"timeConditionVOList"` //详情-时间条件
  10. LampPoleDetailList []LampPoleDetail `json:"lampPoleDetailList"` //详情-灯杆名称
  11. LampPoleGroupDetailList []LampPoleGroupDetail `json:"lampPoleGroupDetailList"` //详情-分组名称
  12. TimeConditionList []dao.TimeCondition `json:"timeConditionList"` //时间条件
  13. CombinationStr string `json:"combinationStr"` //(智慧照明关联时)组合展示
  14. }
  15. type LightConditionDetail struct {
  16. dao.LightCondition
  17. }
  18. type TimeConditionDetail struct {
  19. dao.TimeCondition
  20. }
  21. type RspLightStrategyList struct {
  22. Records []dao.LightStrategy `json:"records"` //记录列表
  23. Current int `json:"current"` //当前分页
  24. Size int `json:"size"` //每页数量
  25. Total int `json:"total"` //总数
  26. Pages int `json:"pages"` //总页数
  27. }
  28. type ReqLightStrategyRemove struct {
  29. IDs int `json:"ids"` //分组编码
  30. SN int `json:"sn"` //sn
  31. Name string `json:"name"` //名称
  32. }