Skip to content

Commit c65ee73

Browse files
authored
update configitem.id type (#512)
1 parent bdae456 commit c65ee73

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

clients/config_client/config_client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ func (client *ConfigClient) getConfigInner(param vo.ConfigParam) (content string
185185
param.Group = constant.DEFAULT_GROUP
186186
}
187187

188-
//todo 获取容灾配置的 EncryptedDataKey LocalEncryptedDataKeyProcessor.getEncryptDataKeyFailover
189188
clientConfig, _ := client.GetClientConfig()
190189
cacheKey := util.GetConfigCacheKey(param.DataId, param.Group, clientConfig.NamespaceId)
191190
content = cache.GetFailover(cacheKey, client.configCacheDir)

example/service/service_client_example.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
func ExampleServiceClient_RegisterServiceInstance(client naming_client.INamingClient, param vo.RegisterInstanceParam) {
2828
success, err := client.RegisterInstance(param)
2929
if !success || err != nil {
30-
panic("RegisterServiceInstance failed!")
30+
panic("RegisterServiceInstance failed!" + err.Error())
3131
}
3232
fmt.Printf("RegisterServiceInstance,param:%+v,result:%+v \n\n", param, success)
3333
}

model/config.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@
1616

1717
package model
1818

19+
import "encoding/json"
20+
1921
type ConfigItem struct {
20-
Id string `param:"id"`
21-
DataId string `param:"dataId"`
22-
Group string `param:"group"`
23-
Content string `param:"content"`
24-
Md5 string `param:"md5"`
25-
Tenant string `param:"tenant"`
26-
Appname string `param:"appname"`
22+
Id json.Number `param:"id"`
23+
DataId string `param:"dataId"`
24+
Group string `param:"group"`
25+
Content string `param:"content"`
26+
Md5 string `param:"md5"`
27+
Tenant string `param:"tenant"`
28+
Appname string `param:"appname"`
2729
}
2830
type ConfigPage struct {
2931
TotalCount int `param:"totalCount"`

0 commit comments

Comments
 (0)