Bläddra i källkod

多域名

master
huangjiajun 17 timmar sedan
förälder
incheckning
33dc26ae2a
5 ändrade filer med 14 tillägg och 2 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

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


+ 2
- 0
docs/swagger.yaml Visa fil

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


Laddar…
Avbryt
Spara