From 917ae30a866bacf6478d7187b5503ed592d33a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=81=92?= <2390904403@qq.com> Date: Wed, 3 Sep 2025 17:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=B1=9E=E6=80=A7=E5=8F=82=E6=95=B0=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC=E7=9A=84=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/rpc/type.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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"` }