update configitem.id type (#512)
This commit is contained in:
parent
bdae4568ee
commit
c65ee73bd7
|
@ -185,7 +185,6 @@ func (client *ConfigClient) getConfigInner(param vo.ConfigParam) (content string
|
|||
param.Group = constant.DEFAULT_GROUP
|
||||
}
|
||||
|
||||
//todo 获取容灾配置的 EncryptedDataKey LocalEncryptedDataKeyProcessor.getEncryptDataKeyFailover
|
||||
clientConfig, _ := client.GetClientConfig()
|
||||
cacheKey := util.GetConfigCacheKey(param.DataId, param.Group, clientConfig.NamespaceId)
|
||||
content = cache.GetFailover(cacheKey, client.configCacheDir)
|
||||
|
|
|
@ -27,7 +27,7 @@ import (
|
|||
func ExampleServiceClient_RegisterServiceInstance(client naming_client.INamingClient, param vo.RegisterInstanceParam) {
|
||||
success, err := client.RegisterInstance(param)
|
||||
if !success || err != nil {
|
||||
panic("RegisterServiceInstance failed!")
|
||||
panic("RegisterServiceInstance failed!" + err.Error())
|
||||
}
|
||||
fmt.Printf("RegisterServiceInstance,param:%+v,result:%+v \n\n", param, success)
|
||||
}
|
||||
|
|
|
@ -16,14 +16,16 @@
|
|||
|
||||
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"`
|
||||
|
|
Loading…
Reference in New Issue