@@ -163,7 +163,7 @@ func ListPlatformRevenue(c *gin.Context) { | |||
// @Param req body md.AddPlatformRevenueReq true "数据种类、金额、时长(最长24h)、执行次数必填,备注选填" | |||
// @Success 200 {int} "插入数据 id" | |||
// @Failure 400 {object} md.Response "具体错误" | |||
// @Router /api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd [post] | |||
// @Router /api/institutionalManagement/eggEnergy/platformRevenue/platformRevenueAdd [post] | |||
func AddPlatformRevenue(c *gin.Context) { | |||
var req *md.AddPlatformRevenueReq | |||
if err1 := c.ShouldBindJSON(&req); err1 != nil { | |||
@@ -761,9 +761,9 @@ const docTemplate = `{ | |||
} | |||
} | |||
}, | |||
"/api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd": { | |||
"/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward": { | |||
"post": { | |||
"description": "其他广告设置数据(新增)", | |||
"description": "激励视频(获取)", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
@@ -773,7 +773,7 @@ const docTemplate = `{ | |||
"tags": [ | |||
"蛋蛋能量" | |||
], | |||
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(新增)", | |||
"summary": "制度中心-蛋蛋能量-平台营收-激励视频(获取)", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
@@ -783,20 +783,20 @@ const docTemplate = `{ | |||
"required": true | |||
}, | |||
{ | |||
"description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填", | |||
"description": "落地页不填页大小默认20条数据", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.AddPlatformRevenueReq" | |||
"$ref": "#/definitions/md.SetVideoRewardReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "插入数据 id", | |||
"description": "OK", | |||
"schema": { | |||
"type": "int" | |||
"$ref": "#/definitions/md.GetVideoRewardResp" | |||
} | |||
}, | |||
"400": { | |||
@@ -808,9 +808,9 @@ const docTemplate = `{ | |||
} | |||
} | |||
}, | |||
"/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward": { | |||
"/api/institutionalManagement/eggEnergy/platformRevenue/platformRevenueAdd": { | |||
"post": { | |||
"description": "激励视频(获取)", | |||
"description": "其他广告设置数据(新增)", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
@@ -820,7 +820,7 @@ const docTemplate = `{ | |||
"tags": [ | |||
"蛋蛋能量" | |||
], | |||
"summary": "制度中心-蛋蛋能量-平台营收-激励视频(获取)", | |||
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(新增)", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
@@ -830,20 +830,20 @@ const docTemplate = `{ | |||
"required": true | |||
}, | |||
{ | |||
"description": "落地页不填页大小默认20条数据", | |||
"description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.SetVideoRewardReq" | |||
"$ref": "#/definitions/md.AddPlatformRevenueReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "OK", | |||
"description": "插入数据 id", | |||
"schema": { | |||
"$ref": "#/definitions/md.GetVideoRewardResp" | |||
"type": "int" | |||
} | |||
}, | |||
"400": { | |||
@@ -754,9 +754,9 @@ | |||
} | |||
} | |||
}, | |||
"/api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd": { | |||
"/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward": { | |||
"post": { | |||
"description": "其他广告设置数据(新增)", | |||
"description": "激励视频(获取)", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
@@ -766,7 +766,7 @@ | |||
"tags": [ | |||
"蛋蛋能量" | |||
], | |||
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(新增)", | |||
"summary": "制度中心-蛋蛋能量-平台营收-激励视频(获取)", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
@@ -776,20 +776,20 @@ | |||
"required": true | |||
}, | |||
{ | |||
"description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填", | |||
"description": "落地页不填页大小默认20条数据", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.AddPlatformRevenueReq" | |||
"$ref": "#/definitions/md.SetVideoRewardReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "插入数据 id", | |||
"description": "OK", | |||
"schema": { | |||
"type": "int" | |||
"$ref": "#/definitions/md.GetVideoRewardResp" | |||
} | |||
}, | |||
"400": { | |||
@@ -801,9 +801,9 @@ | |||
} | |||
} | |||
}, | |||
"/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward": { | |||
"/api/institutionalManagement/eggEnergy/platformRevenue/platformRevenueAdd": { | |||
"post": { | |||
"description": "激励视频(获取)", | |||
"description": "其他广告设置数据(新增)", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
@@ -813,7 +813,7 @@ | |||
"tags": [ | |||
"蛋蛋能量" | |||
], | |||
"summary": "制度中心-蛋蛋能量-平台营收-激励视频(获取)", | |||
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(新增)", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
@@ -823,20 +823,20 @@ | |||
"required": true | |||
}, | |||
{ | |||
"description": "落地页不填页大小默认20条数据", | |||
"description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.SetVideoRewardReq" | |||
"$ref": "#/definitions/md.AddPlatformRevenueReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "OK", | |||
"description": "插入数据 id", | |||
"schema": { | |||
"$ref": "#/definitions/md.GetVideoRewardResp" | |||
"type": "int" | |||
} | |||
}, | |||
"400": { | |||
@@ -3081,66 +3081,66 @@ paths: | |||
summary: 制度中心-蛋蛋能量-价格趋势(获取) | |||
tags: | |||
- 蛋蛋能量 | |||
/api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd: | |||
/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward: | |||
post: | |||
consumes: | |||
- application/json | |||
description: 其他广告设置数据(新增) | |||
description: 激励视频(获取) | |||
parameters: | |||
- description: 验证参数Bearer和token空格拼接 | |||
in: header | |||
name: Authorization | |||
required: true | |||
type: string | |||
- description: 数据种类、金额、时长(最长24h)、执行次数必填,备注选填 | |||
- description: 落地页不填页大小默认20条数据 | |||
in: body | |||
name: req | |||
required: true | |||
schema: | |||
$ref: '#/definitions/md.AddPlatformRevenueReq' | |||
$ref: '#/definitions/md.SetVideoRewardReq' | |||
produces: | |||
- application/json | |||
responses: | |||
"200": | |||
description: 插入数据 id | |||
description: OK | |||
schema: | |||
type: int | |||
$ref: '#/definitions/md.GetVideoRewardResp' | |||
"400": | |||
description: 具体错误 | |||
schema: | |||
$ref: '#/definitions/md.Response' | |||
summary: 制度中心-蛋蛋能量-平台营收-其他广告设置数据(新增) | |||
summary: 制度中心-蛋蛋能量-平台营收-激励视频(获取) | |||
tags: | |||
- 蛋蛋能量 | |||
/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward: | |||
/api/institutionalManagement/eggEnergy/platformRevenue/platformRevenueAdd: | |||
post: | |||
consumes: | |||
- application/json | |||
description: 激励视频(获取) | |||
description: 其他广告设置数据(新增) | |||
parameters: | |||
- description: 验证参数Bearer和token空格拼接 | |||
in: header | |||
name: Authorization | |||
required: true | |||
type: string | |||
- description: 落地页不填页大小默认20条数据 | |||
- description: 数据种类、金额、时长(最长24h)、执行次数必填,备注选填 | |||
in: body | |||
name: req | |||
required: true | |||
schema: | |||
$ref: '#/definitions/md.SetVideoRewardReq' | |||
$ref: '#/definitions/md.AddPlatformRevenueReq' | |||
produces: | |||
- application/json | |||
responses: | |||
"200": | |||
description: OK | |||
description: 插入数据 id | |||
schema: | |||
$ref: '#/definitions/md.GetVideoRewardResp' | |||
type: int | |||
"400": | |||
description: 具体错误 | |||
schema: | |||
$ref: '#/definitions/md.Response' | |||
summary: 制度中心-蛋蛋能量-平台营收-激励视频(获取) | |||
summary: 制度中心-蛋蛋能量-平台营收-其他广告设置数据(新增) | |||
tags: | |||
- 蛋蛋能量 | |||
/api/institutionalManagement/eggEnergy/platformRevenue/platformRevenueList: | |||