shenjiachi 1 giorno fa
parent
commit
05058fe7a7
4 ha cambiato i file con 104 aggiunte e 104 eliminazioni
  1. +1
    -1
      app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go
  2. +36
    -36
      docs/docs.go
  3. +36
    -36
      docs/swagger.json
  4. +31
    -31
      docs/swagger.yaml

+ 1
- 1
app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go Vedi File

@@ -95,7 +95,7 @@ func SetVideoReward(c *gin.Context) {
// @Param req body md.ListPlatformRevenueReq true "分页信息必填"
// @Success 200 {object} md.ListPlatformRevenueResp "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/globalData/platformRevenueList [post]
// @Router /api/institutionalManagement/eggEnergy/platformRevenue/platformRevenueList [post]
func ListPlatformRevenue(c *gin.Context) {
var req *md.ListPlatformRevenueReq
if err1 := c.ShouldBindJSON(&req); err1 != nil {


+ 36
- 36
docs/docs.go Vedi File

@@ -717,9 +717,9 @@ const docTemplate = `{
}
}
},
"/api/institutionalManagement/eggEnergy/globalData/platformRevenueList": {
"post": {
"description": "其他广告设置数据(获取)",
"/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": {
"get": {
"description": "价格趋势(获取)",
"consumes": [
"application/json"
],
@@ -729,7 +729,7 @@ const docTemplate = `{
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(获取)",
"summary": "制度中心-蛋蛋能量-价格趋势(获取)",
"parameters": [
{
"type": "string",
@@ -739,20 +739,17 @@ const docTemplate = `{
"required": true
},
{
"description": "分页信息必填",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.ListPlatformRevenueReq"
}
"type": "string",
"description": "1:按天 2:按小时 3:按周",
"name": "kind",
"in": "query"
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.ListPlatformRevenueResp"
"$ref": "#/definitions/md.GetPriceCurveResp"
}
},
"400": {
@@ -764,9 +761,9 @@ const docTemplate = `{
}
}
},
"/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": {
"get": {
"description": "价格趋势(获取)",
"/api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd": {
"post": {
"description": "其他广告设置数据(新增)",
"consumes": [
"application/json"
],
@@ -776,7 +773,7 @@ const docTemplate = `{
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-价格趋势(获取)",
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(新增)",
"parameters": [
{
"type": "string",
@@ -786,17 +783,20 @@ const docTemplate = `{
"required": true
},
{
"type": "string",
"description": "1:按天 2:按小时 3:按周",
"name": "kind",
"in": "query"
"description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AddPlatformRevenueReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"description": "插入数据 id",
"schema": {
"$ref": "#/definitions/md.GetPriceCurveResp"
"type": "int"
}
},
"400": {
@@ -808,9 +808,9 @@ const docTemplate = `{
}
}
},
"/api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd": {
"/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward": {
"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": "数据种类、金额、时长(最长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": {
@@ -855,9 +855,9 @@ const docTemplate = `{
}
}
},
"/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward": {
"/api/institutionalManagement/eggEnergy/platformRevenue/platformRevenueList": {
"post": {
"description": "激励视频(获取)",
"description": "其他广告设置数据(获取)",
"consumes": [
"application/json"
],
@@ -867,7 +867,7 @@ const docTemplate = `{
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-平台营收-激励视频(获取)",
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(获取)",
"parameters": [
{
"type": "string",
@@ -877,20 +877,20 @@ const docTemplate = `{
"required": true
},
{
"description": "落地页不填页大小默认20条数据",
"description": "分页信息必填",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.SetVideoRewardReq"
"$ref": "#/definitions/md.ListPlatformRevenueReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.GetVideoRewardResp"
"$ref": "#/definitions/md.ListPlatformRevenueResp"
}
},
"400": {


+ 36
- 36
docs/swagger.json Vedi File

@@ -710,9 +710,9 @@
}
}
},
"/api/institutionalManagement/eggEnergy/globalData/platformRevenueList": {
"post": {
"description": "其他广告设置数据(获取)",
"/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": {
"get": {
"description": "价格趋势(获取)",
"consumes": [
"application/json"
],
@@ -722,7 +722,7 @@
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(获取)",
"summary": "制度中心-蛋蛋能量-价格趋势(获取)",
"parameters": [
{
"type": "string",
@@ -732,20 +732,17 @@
"required": true
},
{
"description": "分页信息必填",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.ListPlatformRevenueReq"
}
"type": "string",
"description": "1:按天 2:按小时 3:按周",
"name": "kind",
"in": "query"
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.ListPlatformRevenueResp"
"$ref": "#/definitions/md.GetPriceCurveResp"
}
},
"400": {
@@ -757,9 +754,9 @@
}
}
},
"/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": {
"get": {
"description": "价格趋势(获取)",
"/api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd": {
"post": {
"description": "其他广告设置数据(新增)",
"consumes": [
"application/json"
],
@@ -769,7 +766,7 @@
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-价格趋势(获取)",
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(新增)",
"parameters": [
{
"type": "string",
@@ -779,17 +776,20 @@
"required": true
},
{
"type": "string",
"description": "1:按天 2:按小时 3:按周",
"name": "kind",
"in": "query"
"description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AddPlatformRevenueReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"description": "插入数据 id",
"schema": {
"$ref": "#/definitions/md.GetPriceCurveResp"
"type": "int"
}
},
"400": {
@@ -801,9 +801,9 @@
}
}
},
"/api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd": {
"/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward": {
"post": {
"description": "其他广告设置数据(新增)",
"description": "激励视频(获取)",
"consumes": [
"application/json"
],
@@ -813,7 +813,7 @@
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(新增)",
"summary": "制度中心-蛋蛋能量-平台营收-激励视频(获取)",
"parameters": [
{
"type": "string",
@@ -823,20 +823,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": {
@@ -848,9 +848,9 @@
}
}
},
"/api/institutionalManagement/eggEnergy/platformRevenue/getVideoReward": {
"/api/institutionalManagement/eggEnergy/platformRevenue/platformRevenueList": {
"post": {
"description": "激励视频(获取)",
"description": "其他广告设置数据(获取)",
"consumes": [
"application/json"
],
@@ -860,7 +860,7 @@
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-平台营收-激励视频(获取)",
"summary": "制度中心-蛋蛋能量-平台营收-其他广告设置数据(获取)",
"parameters": [
{
"type": "string",
@@ -870,20 +870,20 @@
"required": true
},
{
"description": "落地页不填页大小默认20条数据",
"description": "分页信息必填",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.SetVideoRewardReq"
"$ref": "#/definitions/md.ListPlatformRevenueReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.GetVideoRewardResp"
"$ref": "#/definitions/md.ListPlatformRevenueResp"
}
},
"400": {


+ 31
- 31
docs/swagger.yaml Vedi File

@@ -3052,37 +3052,6 @@ paths:
summary: 制度中心-蛋蛋能量-新增数据列表详情(查询)
tags:
- 蛋蛋能量
/api/institutionalManagement/eggEnergy/globalData/platformRevenueList:
post:
consumes:
- application/json
description: 其他广告设置数据(获取)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 分页信息必填
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.ListPlatformRevenueReq'
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
$ref: '#/definitions/md.ListPlatformRevenueResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋能量-平台营收-其他广告设置数据(获取)
tags:
- 蛋蛋能量
/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve:
get:
consumes:
@@ -3174,6 +3143,37 @@ paths:
summary: 制度中心-蛋蛋能量-平台营收-激励视频(获取)
tags:
- 蛋蛋能量
/api/institutionalManagement/eggEnergy/platformRevenue/platformRevenueList:
post:
consumes:
- application/json
description: 其他广告设置数据(获取)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 分页信息必填
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.ListPlatformRevenueReq'
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
$ref: '#/definitions/md.ListPlatformRevenueResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋能量-平台营收-其他广告设置数据(获取)
tags:
- 蛋蛋能量
/api/institutionalManagement/eggEnergy/platformRevenue/setVideoReward:
post:
consumes:


Caricamento…
Annulla
Salva