修改获取设备属性参数返回值的类型
This commit is contained in:
@@ -56,13 +56,13 @@ type DeviceAttributeOption struct {
|
|||||||
Type uint8 `json:"type"`
|
Type uint8 `json:"type"`
|
||||||
ContentType uint8 `json:"content_type"`
|
ContentType uint8 `json:"content_type"`
|
||||||
Attribute []struct {
|
Attribute []struct {
|
||||||
Type uint8 `json:"type"`
|
Type uint8 `json:"type"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Flag uint8 `json:"flag"`
|
Flag uint8 `json:"flag"`
|
||||||
Field string `json:"field"`
|
Field string `json:"field"`
|
||||||
Readonly bool `json:"readonly"`
|
Readonly bool `json:"readonly"`
|
||||||
AllowItem *[]int `json:"allow_item,omitempty"`
|
AllowItem *[]uint8 `json:"allow_item,omitempty"`
|
||||||
Min *uint32 `json:"min,omitempty"`
|
Min *uint32 `json:"min,omitempty"`
|
||||||
Max *uint32 `json:"max,omitempty"`
|
Max *uint32 `json:"max,omitempty"`
|
||||||
} `json:"attribute"`
|
} `json:"attribute"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user