This commit is contained in:
TsMask
2023-10-08 18:15:07 +08:00
3 changed files with 8 additions and 5 deletions

View File

@@ -746,7 +746,7 @@ upf:
display: "Udp Src Port"
comment: "Udp Src Port"
- name: "UdpListenPort"
type: "string"
type: "int"
value: "2152"
access: "read-write"
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`;
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
}
services.ResponseWithJson(w, response.StatusCode(), response)
services.ResponseWithJson(w, http.StatusNoContent, response)
}
func PutParamConfigToNF(w http.ResponseWriter, r *http.Request) {
@@ -194,7 +194,7 @@ func PutParamConfigToNF(w http.ResponseWriter, r *http.Request) {
return
}
services.ResponseWithJson(w, response.StatusCode(), response)
services.ResponseWithJson(w, http.StatusNoContent, response)
}
func DeleteParamConfigToNF(w http.ResponseWriter, r *http.Request) {
@@ -238,5 +238,5 @@ func DeleteParamConfigToNF(w http.ResponseWriter, r *http.Request) {
return
}
services.ResponseWithJson(w, response.StatusCode(), response)
services.ResponseWithJson(w, http.StatusNoContent, response)
}