12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- package model
- import (
- "iot_manager_service/app/device/dao"
- )
- const (
- RelationIdInvalid = "该记录未关联策略无法查看,请关联策略!"
- RelationTypeInvalid = "查询参数(关联类型)异常"
- RelationTypeLight = 1
- RelationTypeLampPoleGroup = 2
- IsYear = 2
- Sunshine = 2
- )
- type RspIntelligentLightDetail struct {
- LightControlList []dao.LightControl `json:"lightControlList"`
- LampPoleName string `json:"lampPoleName"`
- LightRelMap IntelligentLightSimple `json:"lightRelMap"`
- }
- type RspIntelligentLightDetailByGroup struct {
- LightControlList []dao.LightControl `json:"lightControlList"`
- LampPoleGroupName string `json:"lampPoleGroupName"`
- CountLampPole int `json:"countLampPole"`
- LightRelMap IntelligentLightSimple `json:"lightRelMap"`
- }
- type IntelligentLightSimple struct {
- TimeConditionList []TimeConditionSimple `json:"timeConditionList"`
- LightName string `json:"lightName"`
- LightSn string `json:"lightSn"`
- EffectiveDate string `json:"effectiveDate"`
- }
- type TimeConditionSimple struct {
- Luminance string `json:"luminance"`
- Times string `json:"times"`
- }
- type RspIntelligentLightListDetail struct {
- LightControlState int `json:"lightControlState"`
- RunState int `json:"runState"`
- PublicName string `json:"publicName"`
- PublicId int `json:"publicId"`
- LampPoleName string `json:"lampPoleName"`
- LampPoleSn string `json:"lampPoleSn"`
- StrategyName string `json:"strategyName"`
- DeviceSn string `json:"deviceSn"`
- ControlType int `json:"controlType"`
- IsShowOpts bool `json:"isShowOpts"`
- }
- type RspIntelligentLightList struct {
- Records []RspIntelligentLightListDetail `json:"records"`
- Current int `json:"current"`
- Size int `json:"size"`
- Pages int `json:"pages"`
- Total int `json:"total"`
- }
|