This commit is contained in:
2023-10-08 18:09:51 +08:00
parent 0a2ee6cb70
commit c22ed9cef9
3 changed files with 8 additions and 5 deletions

View File

@@ -746,7 +746,7 @@ upf:
display: "Udp Src Port" display: "Udp Src Port"
comment: "Udp Src Port" comment: "Udp Src Port"
- name: "UdpListenPort" - name: "UdpListenPort"
type: "string" type: "int"
value: "2152" value: "2152"
access: "read-write" access: "read-write"
filter: '1~65536' filter: '1~65536'

View File

@@ -81,4 +81,7 @@ ALTER TABLE `omc_db`.`param_config`
ADD COLUMN IF NOT EXISTS `method` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '*' COMMENT 'method allow: \"get\", \"get,post,put\", \"*\"' AFTER `top_display`; ADD COLUMN IF NOT EXISTS `method` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '*' COMMENT 'method allow: \"get\", \"get,post,put\", \"*\"' AFTER `top_display`;
ALTER TABLE `omc_db`.`trace_data` ALTER TABLE `omc_db`.`trace_data`
MODIFY COLUMN `timestamp` bigint NULL DEFAULT NULL AFTER `msg_direct`; MODIFY COLUMN `timestamp` bigint NULL DEFAULT NULL AFTER `msg_direct`;
ALTER TABLE `omc_db`.`param_config`
MODIFY COLUMN `method` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'method allow: \"get\", \"get,post,put\", \"delete\"' AFTER `top_display`;

View File

@@ -142,7 +142,7 @@ func PostParamConfigToNF(w http.ResponseWriter, r *http.Request) {
return return
} }
services.ResponseWithJson(w, response.StatusCode(), response) services.ResponseWithJson(w, http.StatusNoContent, response)
} }
func PutParamConfigToNF(w http.ResponseWriter, r *http.Request) { func PutParamConfigToNF(w http.ResponseWriter, r *http.Request) {
@@ -194,7 +194,7 @@ func PutParamConfigToNF(w http.ResponseWriter, r *http.Request) {
return return
} }
services.ResponseWithJson(w, response.StatusCode(), response) services.ResponseWithJson(w, http.StatusNoContent, response)
} }
func DeleteParamConfigToNF(w http.ResponseWriter, r *http.Request) { func DeleteParamConfigToNF(w http.ResponseWriter, r *http.Request) {
@@ -238,5 +238,5 @@ func DeleteParamConfigToNF(w http.ResponseWriter, r *http.Request) {
return return
} }
services.ResponseWithJson(w, response.StatusCode(), response) services.ResponseWithJson(w, http.StatusNoContent, response)
} }