Browse Source

update swag

master
shenjiachi 3 days ago
parent
commit
51a9ac25fb
6 changed files with 237 additions and 20 deletions
  1. +1
    -1
      app/hdl/advertising/hdl_function.go
  2. +1
    -1
      app/hdl/advertising/hdl_list.go
  3. +2
    -2
      app/md/setCenter/oss/aliyun/md.basic.go
  4. +87
    -6
      docs/docs.go
  5. +87
    -6
      docs/swagger.json
  6. +59
    -4
      docs/swagger.yaml

+ 1
- 1
app/hdl/advertising/hdl_function.go View File

@@ -13,7 +13,7 @@ import (
// @Produce json // @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接" // @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.AdvertisingFunctionListReq true "(分页信息必填)" // @Param req body md.AdvertisingFunctionListReq true "(分页信息必填)"
// @Success 200 {object} md.AdvertisingFunctionResp "具体数据"
// @Success 200 {object} md.AdvertisingFunctionListResp "具体数据"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/advertising/function/list [post] // @Router /api/advertising/function/list [post]
func FunctionList(c *gin.Context) { func FunctionList(c *gin.Context) {


+ 1
- 1
app/hdl/advertising/hdl_list.go View File

@@ -13,7 +13,7 @@ import (
// @Produce json // @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接" // @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.AdvertisingListReq true "(分页信息必填)" // @Param req body md.AdvertisingListReq true "(分页信息必填)"
// @Success 200 {object} md.AdvertisingResp "具体数据"
// @Success 200 {object} md.AdvertisingListResp "具体数据"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/advertising/list [post] // @Router /api/advertising/list [post]
func List(c *gin.Context) { func List(c *gin.Context) {


+ 2
- 2
app/md/setCenter/oss/aliyun/md.basic.go View File

@@ -7,7 +7,7 @@ type GetBasicResp struct {
OssAccessKeyId string `json:"oss_access_key_id" example:"oss访问秘钥id"` OssAccessKeyId string `json:"oss_access_key_id" example:"oss访问秘钥id"`
OssAccessKeySecret string `json:"oss_access_key_secret" example:"oss访问秘钥"` OssAccessKeySecret string `json:"oss_access_key_secret" example:"oss访问秘钥"`
OssObjectDomain string `json:"oss_object_domain" example:"oss域名"` OssObjectDomain string `json:"oss_object_domain" example:"oss域名"`
OssOption string `json:"oss_option" example:"oss选项,以逗号分割"`
OssOption string `json:"oss_option" example:"oss上传文件类型选项,以逗号分割"`
} }


type SetBasicReq struct { type SetBasicReq struct {
@@ -17,5 +17,5 @@ type SetBasicReq struct {
OssAccessKeyId string `json:"oss_access_key_id" example:"oss访问秘钥id"` OssAccessKeyId string `json:"oss_access_key_id" example:"oss访问秘钥id"`
OssAccessKeySecret string `json:"oss_access_key_secret" example:"oss访问秘钥"` OssAccessKeySecret string `json:"oss_access_key_secret" example:"oss访问秘钥"`
OssObjectDomain string `json:"oss_object_domain" example:"oss域名"` OssObjectDomain string `json:"oss_object_domain" example:"oss域名"`
OssOption string `json:"oss_option" example:"oss选项,以逗号分割"`
OssOption string `json:"oss_option" example:"oss上传文件类型选项,以逗号分割"`
} }

+ 87
- 6
docs/docs.go View File

@@ -153,7 +153,7 @@ const docTemplate = `{
"200": { "200": {
"description": "具体数据", "description": "具体数据",
"schema": { "schema": {
"$ref": "#/definitions/md.AdvertisingFunctionResp"
"$ref": "#/definitions/md.AdvertisingFunctionListResp"
} }
}, },
"400": { "400": {
@@ -323,7 +323,7 @@ const docTemplate = `{
"200": { "200": {
"description": "具体数据", "description": "具体数据",
"schema": { "schema": {
"$ref": "#/definitions/md.AdvertisingResp"
"$ref": "#/definitions/md.AdvertisingListResp"
} }
}, },
"400": { "400": {
@@ -6000,6 +6000,10 @@ const docTemplate = `{
"oss_object_domain": { "oss_object_domain": {
"type": "string", "type": "string",
"example": "oss域名" "example": "oss域名"
},
"oss_option": {
"type": "string",
"example": "oss上传文件类型选项,以逗号分割"
} }
} }
}, },
@@ -6029,6 +6033,10 @@ const docTemplate = `{
"oss_object_domain": { "oss_object_domain": {
"type": "string", "type": "string",
"example": "oss域名" "example": "oss域名"
},
"oss_option": {
"type": "string",
"example": "oss上传文件类型选项,以逗号分割"
} }
} }
}, },
@@ -6339,8 +6347,37 @@ const docTemplate = `{
} }
} }
}, },
"md.AdvertisingFunctionResp": {
"type": "object"
"md.AdvertisingFunctionListResp": {
"type": "object",
"properties": {
"adv_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AdvertisingFunctionList"
}
},
"select_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"total": {
"type": "integer"
}
}
}, },
"md.AdvertisingLimit": { "md.AdvertisingLimit": {
"type": "object", "type": "object",
@@ -6383,6 +6420,30 @@ const docTemplate = `{
} }
} }
}, },
"md.AdvertisingList": {
"type": "object",
"properties": {
"counting_down": {
"type": "string",
"example": "倒计时 单位秒"
},
"id": {
"type": "string"
},
"info": {
"type": "string",
"example": "广告位配置 {\"chuanshanjia\":{\"android_ad_id\":[\"\"],\"ios_ad_id\":[\"\"]}}"
},
"kind": {
"type": "string",
"example": "广告类型(1:开屏广告 2:插屏广告 3:激励视频 4:信息流广告 5:全屏视频)"
},
"name": {
"type": "string",
"example": "名称"
}
}
},
"md.AdvertisingListReq": { "md.AdvertisingListReq": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -6400,8 +6461,28 @@ const docTemplate = `{
} }
} }
}, },
"md.AdvertisingResp": {
"type": "object"
"md.AdvertisingListResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AdvertisingList"
}
},
"select_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"total": {
"type": "integer"
}
}
}, },
"md.AdvertisingSaveReq": { "md.AdvertisingSaveReq": {
"type": "object", "type": "object",


+ 87
- 6
docs/swagger.json View File

@@ -146,7 +146,7 @@
"200": { "200": {
"description": "具体数据", "description": "具体数据",
"schema": { "schema": {
"$ref": "#/definitions/md.AdvertisingFunctionResp"
"$ref": "#/definitions/md.AdvertisingFunctionListResp"
} }
}, },
"400": { "400": {
@@ -316,7 +316,7 @@
"200": { "200": {
"description": "具体数据", "description": "具体数据",
"schema": { "schema": {
"$ref": "#/definitions/md.AdvertisingResp"
"$ref": "#/definitions/md.AdvertisingListResp"
} }
}, },
"400": { "400": {
@@ -5993,6 +5993,10 @@
"oss_object_domain": { "oss_object_domain": {
"type": "string", "type": "string",
"example": "oss域名" "example": "oss域名"
},
"oss_option": {
"type": "string",
"example": "oss上传文件类型选项,以逗号分割"
} }
} }
}, },
@@ -6022,6 +6026,10 @@
"oss_object_domain": { "oss_object_domain": {
"type": "string", "type": "string",
"example": "oss域名" "example": "oss域名"
},
"oss_option": {
"type": "string",
"example": "oss上传文件类型选项,以逗号分割"
} }
} }
}, },
@@ -6332,8 +6340,37 @@
} }
} }
}, },
"md.AdvertisingFunctionResp": {
"type": "object"
"md.AdvertisingFunctionListResp": {
"type": "object",
"properties": {
"adv_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AdvertisingFunctionList"
}
},
"select_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"total": {
"type": "integer"
}
}
}, },
"md.AdvertisingLimit": { "md.AdvertisingLimit": {
"type": "object", "type": "object",
@@ -6376,6 +6413,30 @@
} }
} }
}, },
"md.AdvertisingList": {
"type": "object",
"properties": {
"counting_down": {
"type": "string",
"example": "倒计时 单位秒"
},
"id": {
"type": "string"
},
"info": {
"type": "string",
"example": "广告位配置 {\"chuanshanjia\":{\"android_ad_id\":[\"\"],\"ios_ad_id\":[\"\"]}}"
},
"kind": {
"type": "string",
"example": "广告类型(1:开屏广告 2:插屏广告 3:激励视频 4:信息流广告 5:全屏视频)"
},
"name": {
"type": "string",
"example": "名称"
}
}
},
"md.AdvertisingListReq": { "md.AdvertisingListReq": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -6393,8 +6454,28 @@
} }
} }
}, },
"md.AdvertisingResp": {
"type": "object"
"md.AdvertisingListResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AdvertisingList"
}
},
"select_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"total": {
"type": "integer"
}
}
}, },
"md.AdvertisingSaveReq": { "md.AdvertisingSaveReq": {
"type": "object", "type": "object",


+ 59
- 4
docs/swagger.yaml View File

@@ -175,6 +175,9 @@ definitions:
oss_object_domain: oss_object_domain:
example: oss域名 example: oss域名
type: string type: string
oss_option:
example: oss上传文件类型选项,以逗号分割
type: string
type: object type: object
applet_app_md_setCenter_oss_aliyun.SetBasicReq: applet_app_md_setCenter_oss_aliyun.SetBasicReq:
properties: properties:
@@ -196,6 +199,9 @@ definitions:
oss_object_domain: oss_object_domain:
example: oss域名 example: oss域名
type: string type: string
oss_option:
example: oss上传文件类型选项,以逗号分割
type: string
type: object type: object
md.ActivePointsWalletNode: md.ActivePointsWalletNode:
properties: properties:
@@ -413,7 +419,26 @@ definitions:
page: page:
type: string type: string
type: object type: object
md.AdvertisingFunctionResp:
md.AdvertisingFunctionListResp:
properties:
adv_data:
items:
additionalProperties:
type: string
type: object
type: array
list:
items:
$ref: '#/definitions/md.AdvertisingFunctionList'
type: array
select_data:
items:
additionalProperties:
type: string
type: object
type: array
total:
type: integer
type: object type: object
md.AdvertisingLimit: md.AdvertisingLimit:
properties: properties:
@@ -445,6 +470,23 @@ definitions:
example: 提现弹窗文字 example: 提现弹窗文字
type: string type: string
type: object type: object
md.AdvertisingList:
properties:
counting_down:
example: 倒计时 单位秒
type: string
id:
type: string
info:
example: 广告位配置 {"chuanshanjia":{"android_ad_id":[""],"ios_ad_id":[""]}}
type: string
kind:
example: 广告类型(1:开屏广告 2:插屏广告 3:激励视频 4:信息流广告 5:全屏视频)
type: string
name:
example: 名称
type: string
type: object
md.AdvertisingListReq: md.AdvertisingListReq:
properties: properties:
kind: kind:
@@ -456,7 +498,20 @@ definitions:
page: page:
type: string type: string
type: object type: object
md.AdvertisingResp:
md.AdvertisingListResp:
properties:
list:
items:
$ref: '#/definitions/md.AdvertisingList'
type: array
select_data:
items:
additionalProperties:
type: string
type: object
type: array
total:
type: integer
type: object type: object
md.AdvertisingSaveReq: md.AdvertisingSaveReq:
properties: properties:
@@ -3875,7 +3930,7 @@ paths:
"200": "200":
description: 具体数据 description: 具体数据
schema: schema:
$ref: '#/definitions/md.AdvertisingFunctionResp'
$ref: '#/definitions/md.AdvertisingFunctionListResp'
"400": "400":
description: 具体错误 description: 具体错误
schema: schema:
@@ -3987,7 +4042,7 @@ paths:
"200": "200":
description: 具体数据 description: 具体数据
schema: schema:
$ref: '#/definitions/md.AdvertisingResp'
$ref: '#/definitions/md.AdvertisingListResp'
"400": "400":
description: 具体错误 description: 具体错误
schema: schema:


Loading…
Cancel
Save