intelligentLighting.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package model
  2. import "iot_manager_service/app/device/dao"
  3. const (
  4. RelationIdInvalid = "该记录未关联策略无法查看,请关联策略!"
  5. RelationTypeInvalid = "查询参数(关联类型)异常"
  6. RelationTypeLight = 1 //关联类型 灯控
  7. RelationTypeLampPoleGroup = 2 //关联类型 灯杆分组
  8. )
  9. type RspIntelligentLightDetail struct {
  10. LightControlList []dao.LightControl `json:"lightControlList"`
  11. LampPoleName string `json:"lampPoleName"`
  12. LightRelMap IntelligentLightSimple `json:"lightRelMap"`
  13. }
  14. type RspIntelligentLightDetailByGroup struct {
  15. LightControlList []dao.LightControl `json:"lightControlList"`
  16. LampPoleGroupName string `json:"lampPoleGroupName"`
  17. CountLampPole int `json:"countLampPole"`
  18. LightRelMap IntelligentLightSimple `json:"lightRelMap"`
  19. }
  20. type IntelligentLightSimple struct {
  21. TimeConditionList []TimeConditionSimple `json:"timeConditionList"` //时间条件列表
  22. LightName string `json:"lightName"` //灯控名称
  23. LightSn string `json:"lightSn"` //灯控SN
  24. EffectiveDate string `json:"effectiveDate"` //生效日期
  25. }
  26. type TimeConditionSimple struct {
  27. Luminance string `json:"luminance"`
  28. Times string `json:"times"`
  29. }