fix:nrf parameter config update to only get method
This commit is contained in:
@@ -25,6 +25,7 @@ nrf:
|
||||
comment: ""
|
||||
registeredNFs:
|
||||
display: "Registered NFs"
|
||||
method: "get"
|
||||
array:
|
||||
- name: "index"
|
||||
type: "int"
|
||||
|
||||
@@ -32,6 +32,7 @@ type ParamConfig struct {
|
||||
NeId string `json:"neId"`
|
||||
TopTag string `json:"topTag"`
|
||||
TopDisplay string `json:"topDisplay"`
|
||||
Method string `json:"method"`
|
||||
ParamJson string `json:"paramJson"`
|
||||
}
|
||||
|
||||
@@ -56,6 +57,10 @@ func XormInsertParamConfig(mapJson *map[string]interface{}) (int64, error) {
|
||||
if k == "display" {
|
||||
paramConfig.TopDisplay = fmt.Sprintf("%v", v)
|
||||
|
||||
} else if k == "method" {
|
||||
if v != "" {
|
||||
paramConfig.Method = fmt.Sprintf("%v", v)
|
||||
}
|
||||
} else {
|
||||
pc, _ := json.Marshal(v)
|
||||
paramConfig.ParamJson = fmt.Sprintf("{\"%v\":%v}", k, string(pc))
|
||||
|
||||
Reference in New Issue
Block a user