mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
43 lines
1.1 KiB
Go
43 lines
1.1 KiB
Go
package entity
|
|
|
|
type DeviceTotalOutput struct {
|
|
DeviceInfo DeviceCount `json:"deviceInfo"`
|
|
DeviceLinkStatusInfo []DeviceCountLinkStatus `json:"deviceLinkStatusInfo"`
|
|
DeviceCountType []DeviceCountType `json:"deviceCountType"`
|
|
ProductInfo DeviceCount `json:"productInfo"`
|
|
AlarmInfo DeviceCount `json:"alarmInfo"`
|
|
}
|
|
|
|
type DeviceStatusVo struct {
|
|
Name string `json:"name"`
|
|
Key string `json:"key"`
|
|
Type string `json:"type"`
|
|
Define any `json:"define"`
|
|
Value any `json:"value"`
|
|
Time any `json:"time"`
|
|
}
|
|
|
|
type VisualClass struct {
|
|
ClassId string `json:"classId"`
|
|
Name string `json:"name"`
|
|
Attrs []VisualTwinAttr `json:"attrs"`
|
|
}
|
|
|
|
type VisualTwinAttr struct {
|
|
Key string `json:"key"`
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
Rw string `json:"rw"` //属性的操作权限
|
|
}
|
|
|
|
type VisualTwin struct {
|
|
TwinId string `json:"twinId"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// 发送数据
|
|
type VisualTwinSendAttrs struct {
|
|
TwinId string `json:"twinId"`
|
|
Attrs map[string]interface{} `json:"attrs"`
|
|
}
|