From 4464edc1fd9fac2499dd5056955178a2cf995b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=82=9F=E7=A9=BA?= Date: Wed, 15 Feb 2023 20:15:07 +0800 Subject: [PATCH] feat: update ConfigItem.Id type to be compatible with Nacos v1.2 server (#569) --- model/config.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/model/config.go b/model/config.go index 5d13a14a..2480b904 100644 --- a/model/config.go +++ b/model/config.go @@ -16,14 +16,18 @@ package model +import ( + "encoding/json" +) + type ConfigItem struct { - Id string `param:"id"` - DataId string `param:"dataId"` - Group string `param:"group"` - Content string `param:"content"` - Md5 string `param:"md5"` - Tenant string `param:"tenant"` - Appname string `param:"appname"` + Id json.Number `param:"id"` + DataId string `param:"dataId"` + Group string `param:"group"` + Content string `param:"content"` + Md5 string `param:"md5"` + Tenant string `param:"tenant"` + Appname string `param:"appname"` } type ConfigPage struct { TotalCount int `param:"totalCount"`