From 05058fe7a7989acc0403721d07a21e1a9f42c1ea Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Thu, 21 Nov 2024 11:15:26 +0800 Subject: [PATCH] update --- .../egg_energy/hdl_platform_revenue.go | 2 +- docs/docs.go | 72 +++++++++---------- docs/swagger.json | 72 +++++++++---------- docs/swagger.yaml | 62 ++++++++-------- 4 files changed, 104 insertions(+), 104 deletions(-) diff --git a/app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go b/app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go index 6a56c03..542e567 100644 --- a/app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go +++ b/app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go @@ -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 { diff --git a/docs/docs.go b/docs/docs.go index 36112e6..c9114b9 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -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": { diff --git a/docs/swagger.json b/docs/swagger.json index 9393353..6ec88af 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -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": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 6ef3b99..ef4df92 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -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: