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