修改设备属性参数列表返回格式

This commit is contained in:
2026-02-25 14:48:30 +08:00
parent a0b0f33b1e
commit 1f8e253f69

View File

@@ -61,7 +61,7 @@ type DeviceAttributeOption struct {
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 *[]uint8 `json:"allow_item,omitempty"` // 可用选项列表 AllowItem *map[int]string `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"` // 设备属性列表