From 33dc26ae2a4585bd5dbb162b54933bbfb543ae0b Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sun, 22 Dec 2024 15:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/setCenter/web/hdl_basic.go | 5 ++++- app/md/setCenter/md_web.go | 3 ++- docs/docs.go | 3 +++ docs/swagger.json | 3 +++ docs/swagger.yaml | 2 ++ 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/hdl/setCenter/web/hdl_basic.go b/app/hdl/setCenter/web/hdl_basic.go index d823526..9b7de78 100644 --- a/app/hdl/setCenter/web/hdl_basic.go +++ b/app/hdl/setCenter/web/hdl_basic.go @@ -85,10 +85,12 @@ func SetBasic(c *gin.Context) { // @Router /api/settCenter/web/getDownDomainBasic [get] func GetDownDomainBasic(c *gin.Context) { domain := svc.GetSysCfgStr("down_web_domain") + downWebOpen := svc.GetSysCfgStr("down_web_open") var tmp = make([]string, 0) json.Unmarshal([]byte(domain), &tmp) resp := setCenter.WebDomainBasicReq{ - WebDomain: tmp, + WebDomain: tmp, + DownWebOpen: downWebOpen, } e.OutSuc(c, resp, nil) } @@ -111,6 +113,7 @@ func SetDownDomainBasic(c *gin.Context) { return } svc.SetSysCfgStr("down_web_domain", utils.SerializeStr(req.WebDomain)) + svc.SetSysCfgStr("down_web_open", req.DownWebOpen) e.OutSuc(c, "success", nil) return } diff --git a/app/md/setCenter/md_web.go b/app/md/setCenter/md_web.go index 5d19bfd..69f502d 100644 --- a/app/md/setCenter/md_web.go +++ b/app/md/setCenter/md_web.go @@ -25,5 +25,6 @@ type KuaizhanBasicReq struct { KuaizhanUrl string `json:"kuaizhan_url"` } type WebDomainBasicReq struct { - WebDomain []string `json:"web_domain"` + WebDomain []string `json:"web_domain"` + DownWebOpen string `json:"down_web_open"` } diff --git a/docs/docs.go b/docs/docs.go index 4cc9045..66a8329 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -17574,6 +17574,9 @@ const docTemplate = `{ "setCenter.WebDomainBasicReq": { "type": "object", "properties": { + "down_web_open": { + "type": "string" + }, "web_domain": { "type": "array", "items": { diff --git a/docs/swagger.json b/docs/swagger.json index d582504..1da5309 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -17566,6 +17566,9 @@ "setCenter.WebDomainBasicReq": { "type": "object", "properties": { + "down_web_open": { + "type": "string" + }, "web_domain": { "type": "array", "items": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 8e2681c..da674a5 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -5473,6 +5473,8 @@ definitions: type: object setCenter.WebDomainBasicReq: properties: + down_web_open: + type: string web_domain: items: type: string