1 Commits

Author SHA1 Message Date
917ae30a86 修改获取设备属性参数返回值的类型 2025-09-03 17:41:14 +08:00

View File

@@ -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"`
} }