diff --git a/pkg/rpc/type.go b/pkg/rpc/type.go index b451505..f5d0bdb 100644 --- a/pkg/rpc/type.go +++ b/pkg/rpc/type.go @@ -56,13 +56,13 @@ type DeviceAttributeOption struct { Type uint8 `json:"type"` ContentType uint8 `json:"content_type"` Attribute []struct { - Type uint8 `json:"type"` - Name string `json:"name"` - Flag uint8 `json:"flag"` - Field string `json:"field"` - Readonly bool `json:"readonly"` - AllowItem *[]int `json:"allow_item,omitempty"` - Min *uint32 `json:"min,omitempty"` - Max *uint32 `json:"max,omitempty"` + Type uint8 `json:"type"` + Name string `json:"name"` + Flag uint8 `json:"flag"` + Field string `json:"field"` + Readonly bool `json:"readonly"` + AllowItem *[]uint8 `json:"allow_item,omitempty"` + Min *uint32 `json:"min,omitempty"` + Max *uint32 `json:"max,omitempty"` } `json:"attribute"` }