@@ -85,10 +85,12 @@ func SetBasic(c *gin.Context) { | |||||
// @Router /api/settCenter/web/getDownDomainBasic [get] | // @Router /api/settCenter/web/getDownDomainBasic [get] | ||||
func GetDownDomainBasic(c *gin.Context) { | func GetDownDomainBasic(c *gin.Context) { | ||||
domain := svc.GetSysCfgStr("down_web_domain") | domain := svc.GetSysCfgStr("down_web_domain") | ||||
downWebOpen := svc.GetSysCfgStr("down_web_open") | |||||
var tmp = make([]string, 0) | var tmp = make([]string, 0) | ||||
json.Unmarshal([]byte(domain), &tmp) | json.Unmarshal([]byte(domain), &tmp) | ||||
resp := setCenter.WebDomainBasicReq{ | resp := setCenter.WebDomainBasicReq{ | ||||
WebDomain: tmp, | |||||
WebDomain: tmp, | |||||
DownWebOpen: downWebOpen, | |||||
} | } | ||||
e.OutSuc(c, resp, nil) | e.OutSuc(c, resp, nil) | ||||
} | } | ||||
@@ -111,6 +113,7 @@ func SetDownDomainBasic(c *gin.Context) { | |||||
return | return | ||||
} | } | ||||
svc.SetSysCfgStr("down_web_domain", utils.SerializeStr(req.WebDomain)) | svc.SetSysCfgStr("down_web_domain", utils.SerializeStr(req.WebDomain)) | ||||
svc.SetSysCfgStr("down_web_open", req.DownWebOpen) | |||||
e.OutSuc(c, "success", nil) | e.OutSuc(c, "success", nil) | ||||
return | return | ||||
} | } | ||||
@@ -25,5 +25,6 @@ type KuaizhanBasicReq struct { | |||||
KuaizhanUrl string `json:"kuaizhan_url"` | KuaizhanUrl string `json:"kuaizhan_url"` | ||||
} | } | ||||
type WebDomainBasicReq struct { | type WebDomainBasicReq struct { | ||||
WebDomain []string `json:"web_domain"` | |||||
WebDomain []string `json:"web_domain"` | |||||
DownWebOpen string `json:"down_web_open"` | |||||
} | } |
@@ -17574,6 +17574,9 @@ const docTemplate = `{ | |||||
"setCenter.WebDomainBasicReq": { | "setCenter.WebDomainBasicReq": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
"down_web_open": { | |||||
"type": "string" | |||||
}, | |||||
"web_domain": { | "web_domain": { | ||||
"type": "array", | "type": "array", | ||||
"items": { | "items": { | ||||
@@ -17566,6 +17566,9 @@ | |||||
"setCenter.WebDomainBasicReq": { | "setCenter.WebDomainBasicReq": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
"down_web_open": { | |||||
"type": "string" | |||||
}, | |||||
"web_domain": { | "web_domain": { | ||||
"type": "array", | "type": "array", | ||||
"items": { | "items": { | ||||
@@ -5473,6 +5473,8 @@ definitions: | |||||
type: object | type: object | ||||
setCenter.WebDomainBasicReq: | setCenter.WebDomainBasicReq: | ||||
properties: | properties: | ||||
down_web_open: | |||||
type: string | |||||
web_domain: | web_domain: | ||||
items: | items: | ||||
type: string | type: string | ||||