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