From b365b591f44aa0f858f5f74d4281c8ead701c72a Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Fri, 15 Nov 2024 09:26:24 +0800 Subject: [PATCH] update --- .../egg_energy/hdl_basic.go | 2 +- .../egg_energy/hdl_platform_revenue.go | 2 +- app/hdl/setCenter/oss/aliyun/hdl_basic.go | 4 +- docs/docs.go | 156 ++++++++++++++++-- docs/swagger.json | 156 ++++++++++++++++-- docs/swagger.yaml | 109 ++++++++++-- 6 files changed, 390 insertions(+), 39 deletions(-) diff --git a/app/hdl/institutional_management/egg_energy/hdl_basic.go b/app/hdl/institutional_management/egg_energy/hdl_basic.go index 3983328..d5bb1f1 100644 --- a/app/hdl/institutional_management/egg_energy/hdl_basic.go +++ b/app/hdl/institutional_management/egg_energy/hdl_basic.go @@ -24,7 +24,7 @@ import ( // @param Authorization header string true "验证参数Bearer和token空格拼接" // @Success 200 {object} []md.VirtualCoin "成功返回" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/institutionalManagement/eggEnergy/availableEnergy/list [post] +// @Router /api/institutionalManagement/eggEnergy/getVirtualCoinList [get] func GetVirtualCoinList(c *gin.Context) { virtualCoinDb := implement.NewVirtualCoinDb(db.Db) coins, err := virtualCoinDb.VirtualCoinFindAll() 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 3830192..3732575 100644 --- a/app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go +++ b/app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go @@ -71,7 +71,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/fundDataList [post] +// @Router /api/institutionalManagement/eggEnergy/globalData/platformRevenueList [post] func ListPlatformRevenue(c *gin.Context) { var req *md.ListPlatformRevenueReq if err1 := c.ShouldBindJSON(&req); err1 != nil { diff --git a/app/hdl/setCenter/oss/aliyun/hdl_basic.go b/app/hdl/setCenter/oss/aliyun/hdl_basic.go index e38cf39..acdbc38 100644 --- a/app/hdl/setCenter/oss/aliyun/hdl_basic.go +++ b/app/hdl/setCenter/oss/aliyun/hdl_basic.go @@ -19,7 +19,7 @@ import ( // @param Authorization header string true "验证参数Bearer和token空格拼接" // @Success 200 {object} md.GetBasicResp "设置列表" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/comm/oss/getOssUrl [get] +// @Router /api/comm/oss/getBasic [get] func GetBasic(c *gin.Context) { redisConn := cache.GetPool().Get() sysCfgDb := implement.NewSysCfgDb(db.Db, redisConn) @@ -85,7 +85,7 @@ func GetBasic(c *gin.Context) { // @param req body md.SetBasicReq true "上传需要修改的信息" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/comm/oss/getOssUrl [get] +// @Router /api/comm/oss/setBasic [post] func SetBasic(c *gin.Context) { var req *md.SetBasicReq if err1 := c.ShouldBindJSON(&req); err1 != nil { diff --git a/docs/docs.go b/docs/docs.go index a2db8eb..b6d1654 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -62,8 +62,46 @@ const docTemplate = `{ } } }, - "/api/comm/oss/getOssUrl": { + "/api/comm/oss/getBasic": { "get": { + "description": "对象存储设置(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "对象存储" + ], + "summary": "设置中心-对象存储-对象存储设置(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "设置列表", + "schema": { + "$ref": "#/definitions/md.GetBasicResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/comm/oss/setBasic": { + "post": { "description": "对象存储设置(更新)", "consumes": [ "application/json" @@ -150,7 +188,7 @@ const docTemplate = `{ }, "/api/institutionalManagement/eggEnergy/availableEnergy/list": { "post": { - "description": "查询所有币种(获取)", + "description": "动态数据流水(获取)", "consumes": [ "application/json" ], @@ -158,9 +196,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "蛋蛋能量" + "公排管理" ], - "summary": "制度中心-蛋蛋能量-查询所有币种(获取)", + "summary": "制度中心-动态数据-动态数据流水(获取)", "parameters": [ { "type": "string", @@ -168,16 +206,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "页数、每页大小必传 起止时间、持有类型选传", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.DynamicDataFlowListReq" + } } ], "responses": { "200": { "description": "成功返回", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/md.VirtualCoin" - } + "$ref": "#/definitions/md.DynamicDataFlowListResp" } }, "400": { @@ -227,6 +271,47 @@ const docTemplate = `{ } } }, + "/api/institutionalManagement/eggEnergy/getVirtualCoinList": { + "get": { + "description": "查询所有币种(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "蛋蛋能量" + ], + "summary": "制度中心-蛋蛋能量-查询所有币种(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "成功返回", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/md.VirtualCoin" + } + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/globalData/coreDataList": { "get": { "description": "数据概览(获取)", @@ -314,7 +399,7 @@ const docTemplate = `{ }, "/api/institutionalManagement/eggEnergy/globalData/fundDataList": { "post": { - "description": "平台营收数据(获取)", + "description": "新增数据列表(获取)", "consumes": [ "application/json" ], @@ -324,7 +409,7 @@ const docTemplate = `{ "tags": [ "蛋蛋能量" ], - "summary": "制度中心-蛋蛋能量-平台营收数据(获取)", + "summary": "制度中心-蛋蛋能量-新增数据列表(获取)", "parameters": [ { "type": "string", @@ -339,7 +424,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.ListPlatformRevenueReq" + "$ref": "#/definitions/md.GetFundDataListReq" } } ], @@ -347,7 +432,7 @@ const docTemplate = `{ "200": { "description": "具体数据", "schema": { - "$ref": "#/definitions/md.ListPlatformRevenueResp" + "$ref": "#/definitions/md.GetFundDataListResp" } }, "400": { @@ -406,6 +491,53 @@ const docTemplate = `{ } } }, + "/api/institutionalManagement/eggEnergy/globalData/platformRevenueList": { + "post": { + "description": "平台营收数据(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "蛋蛋能量" + ], + "summary": "制度中心-蛋蛋能量-平台营收数据(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "分页信息必填", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.ListPlatformRevenueReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.ListPlatformRevenueResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": { "get": { "description": "价格趋势(获取)", diff --git a/docs/swagger.json b/docs/swagger.json index 6ac3ffb..3b1ea22 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -55,8 +55,46 @@ } } }, - "/api/comm/oss/getOssUrl": { + "/api/comm/oss/getBasic": { "get": { + "description": "对象存储设置(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "对象存储" + ], + "summary": "设置中心-对象存储-对象存储设置(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "设置列表", + "schema": { + "$ref": "#/definitions/md.GetBasicResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/comm/oss/setBasic": { + "post": { "description": "对象存储设置(更新)", "consumes": [ "application/json" @@ -143,7 +181,7 @@ }, "/api/institutionalManagement/eggEnergy/availableEnergy/list": { "post": { - "description": "查询所有币种(获取)", + "description": "动态数据流水(获取)", "consumes": [ "application/json" ], @@ -151,9 +189,9 @@ "application/json" ], "tags": [ - "蛋蛋能量" + "公排管理" ], - "summary": "制度中心-蛋蛋能量-查询所有币种(获取)", + "summary": "制度中心-动态数据-动态数据流水(获取)", "parameters": [ { "type": "string", @@ -161,16 +199,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "页数、每页大小必传 起止时间、持有类型选传", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.DynamicDataFlowListReq" + } } ], "responses": { "200": { "description": "成功返回", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/md.VirtualCoin" - } + "$ref": "#/definitions/md.DynamicDataFlowListResp" } }, "400": { @@ -220,6 +264,47 @@ } } }, + "/api/institutionalManagement/eggEnergy/getVirtualCoinList": { + "get": { + "description": "查询所有币种(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "蛋蛋能量" + ], + "summary": "制度中心-蛋蛋能量-查询所有币种(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "成功返回", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/md.VirtualCoin" + } + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/globalData/coreDataList": { "get": { "description": "数据概览(获取)", @@ -307,7 +392,7 @@ }, "/api/institutionalManagement/eggEnergy/globalData/fundDataList": { "post": { - "description": "平台营收数据(获取)", + "description": "新增数据列表(获取)", "consumes": [ "application/json" ], @@ -317,7 +402,7 @@ "tags": [ "蛋蛋能量" ], - "summary": "制度中心-蛋蛋能量-平台营收数据(获取)", + "summary": "制度中心-蛋蛋能量-新增数据列表(获取)", "parameters": [ { "type": "string", @@ -332,7 +417,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.ListPlatformRevenueReq" + "$ref": "#/definitions/md.GetFundDataListReq" } } ], @@ -340,7 +425,7 @@ "200": { "description": "具体数据", "schema": { - "$ref": "#/definitions/md.ListPlatformRevenueResp" + "$ref": "#/definitions/md.GetFundDataListResp" } }, "400": { @@ -399,6 +484,53 @@ } } }, + "/api/institutionalManagement/eggEnergy/globalData/platformRevenueList": { + "post": { + "description": "平台营收数据(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "蛋蛋能量" + ], + "summary": "制度中心-蛋蛋能量-平台营收数据(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "分页信息必填", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.ListPlatformRevenueReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.ListPlatformRevenueResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": { "get": { "description": "价格趋势(获取)", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 338c5ec..45ca601 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1327,8 +1327,33 @@ paths: summary: 通用请求-对象存储-上传许可链接(获取) tags: - 对象存储 - /api/comm/oss/getOssUrl: + /api/comm/oss/getBasic: get: + consumes: + - application/json + description: 对象存储设置(获取) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 设置列表 + schema: + $ref: '#/definitions/md.GetBasicResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 设置中心-对象存储-对象存储设置(获取) + tags: + - 对象存储 + /api/comm/oss/setBasic: + post: consumes: - application/json description: 对象存储设置(更新) @@ -1388,29 +1413,33 @@ paths: post: consumes: - application/json - description: 查询所有币种(获取) + description: 动态数据流水(获取) parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string + - description: 页数、每页大小必传 起止时间、持有类型选传 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.DynamicDataFlowListReq' produces: - application/json responses: "200": description: 成功返回 schema: - items: - $ref: '#/definitions/md.VirtualCoin' - type: array + $ref: '#/definitions/md.DynamicDataFlowListResp' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-查询所有币种(获取) + summary: 制度中心-动态数据-动态数据流水(获取) tags: - - 蛋蛋能量 + - 公排管理 /api/institutionalManagement/eggEnergy/getBasic: get: consumes: @@ -1436,6 +1465,33 @@ paths: summary: 制度中心-蛋蛋能量-基础设置(获取) tags: - 蛋蛋能量 + /api/institutionalManagement/eggEnergy/getVirtualCoinList: + get: + consumes: + - application/json + description: 查询所有币种(获取) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 成功返回 + schema: + items: + $ref: '#/definitions/md.VirtualCoin' + type: array + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-蛋蛋能量-查询所有币种(获取) + tags: + - 蛋蛋能量 /api/institutionalManagement/eggEnergy/globalData/coreDataList: get: consumes: @@ -1496,7 +1552,7 @@ paths: post: consumes: - application/json - description: 平台营收数据(获取) + description: 新增数据列表(获取) parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -1508,19 +1564,19 @@ paths: name: req required: true schema: - $ref: '#/definitions/md.ListPlatformRevenueReq' + $ref: '#/definitions/md.GetFundDataListReq' produces: - application/json responses: "200": description: 具体数据 schema: - $ref: '#/definitions/md.ListPlatformRevenueResp' + $ref: '#/definitions/md.GetFundDataListResp' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-平台营收数据(获取) + summary: 制度中心-蛋蛋能量-新增数据列表(获取) tags: - 蛋蛋能量 /api/institutionalManagement/eggEnergy/globalData/fundDataRecordList: @@ -1554,6 +1610,37 @@ 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: