huangjiajun 13 ore fa
parent
commit
33dc26ae2a
5 ha cambiato i file con 14 aggiunte e 2 eliminazioni
  1. +4
    -1
      app/hdl/setCenter/web/hdl_basic.go
  2. +2
    -1
      app/md/setCenter/md_web.go
  3. +3
    -0
      docs/docs.go
  4. +3
    -0
      docs/swagger.json
  5. +2
    -0
      docs/swagger.yaml

+ 4
- 1
app/hdl/setCenter/web/hdl_basic.go Vedi File

@@ -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
}


+ 2
- 1
app/md/setCenter/md_web.go Vedi File

@@ -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"`
}

+ 3
- 0
docs/docs.go Vedi File

@@ -17574,6 +17574,9 @@ const docTemplate = `{
"setCenter.WebDomainBasicReq": {
"type": "object",
"properties": {
"down_web_open": {
"type": "string"
},
"web_domain": {
"type": "array",
"items": {


+ 3
- 0
docs/swagger.json Vedi File

@@ -17566,6 +17566,9 @@
"setCenter.WebDomainBasicReq": {
"type": "object",
"properties": {
"down_web_open": {
"type": "string"
},
"web_domain": {
"type": "array",
"items": {


+ 2
- 0
docs/swagger.yaml Vedi File

@@ -5473,6 +5473,8 @@ definitions:
type: object
setCenter.WebDomainBasicReq:
properties:
down_web_open:
type: string
web_domain:
items:
type: string


Caricamento…
Annulla
Salva