From 9af3ce6d91dbff4d255ea3de8103e6506f85fd92 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 11 Dec 2024 11:57:57 +0800 Subject: [PATCH] add swag --- docs/docs.go | 190 ++++++++++++++++++++++++++++++++++++++++++++-- docs/swagger.json | 185 +++++++++++++++++++++++++++++++++++++++++++- docs/swagger.yaml | 124 +++++++++++++++++++++++++++++- 3 files changed, 489 insertions(+), 10 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index e88bdfc..25d78fb 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,5 +1,4 @@ -// Code generated by swaggo/swag. DO NOT EDIT. - +// Package docs Code generated by swaggo/swag. DO NOT EDIT package docs import "github.com/swaggo/swag" @@ -1477,9 +1476,7 @@ const docTemplate = `{ "name": "req", "in": "body", "required": true, - "schema": { - "type": "object" - } + "schema": {} } ], "responses": { @@ -3292,6 +3289,53 @@ const docTemplate = `{ } } }, + "/api/institutionalManagement/eggEnergy/batchAddVirtualCoins": { + "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.BatchAddVirtualCoinsReq" + } + } + ], + "responses": { + "200": { + "description": "新增数据数量", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/contributionValue/basic": { "get": { "description": "贡献值-基础设置(获取)", @@ -3377,6 +3421,44 @@ const docTemplate = `{ } } }, + "/api/institutionalManagement/eggEnergy/deleteVirtualCoin/{$id}": { + "delete": { + "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": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/eggPoint/manualScore": { "post": { "description": "蛋蛋分管理(人工打分)", @@ -4187,6 +4269,53 @@ const docTemplate = `{ } } }, + "/api/institutionalManagement/eggEnergy/updateVirtualCoin": { + "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.UpdateVirtualCoinReq" + } + } + ], + "responses": { + "200": { + "description": "更新数据数量", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/userCoin/eggEnergyUserCoinFlowList": { "post": { "description": "蛋蛋能量流水(查询)", @@ -9498,6 +9627,23 @@ const docTemplate = `{ } } }, + "md.AddVirtualCoinNode": { + "type": "object", + "properties": { + "exchange_ratio": { + "description": "兑换比例(与金额)", + "type": "string" + }, + "is_use": { + "description": "是否开启:0否 1是", + "type": "integer" + }, + "name": { + "description": "名称", + "type": "string" + } + } + }, "md.AdminListReq": { "type": "object", "properties": { @@ -10111,6 +10257,18 @@ const docTemplate = `{ } } }, + "md.BatchAddVirtualCoinsReq": { + "type": "object", + "properties": { + "list": { + "description": "新增的货币列表", + "type": "array", + "items": { + "$ref": "#/definitions/md.AddVirtualCoinNode" + } + } + } + }, "md.BatchSendGroupMessageReq": { "type": "object", "properties": { @@ -14543,6 +14701,26 @@ const docTemplate = `{ } } }, + "md.UpdateVirtualCoinReq": { + "type": "object", + "properties": { + "exchange_ratio": { + "description": "兑换比例(与金额)", + "type": "string" + }, + "id": { + "type": "integer" + }, + "is_use": { + "description": "是否开启:0否 1是", + "type": "integer" + }, + "name": { + "description": "名称", + "type": "string" + } + } + }, "md.UpdateWithdrawSettingReq": { "type": "object", "properties": { @@ -16147,6 +16325,8 @@ var SwaggerInfo = &swag.Spec{ Description: "管理后台接口文档", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, + LeftDelim: "{{", + RightDelim: "}}", } func init() { diff --git a/docs/swagger.json b/docs/swagger.json index f1690a4..c49c3cd 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1469,9 +1469,7 @@ "name": "req", "in": "body", "required": true, - "schema": { - "type": "object" - } + "schema": {} } ], "responses": { @@ -3284,6 +3282,53 @@ } } }, + "/api/institutionalManagement/eggEnergy/batchAddVirtualCoins": { + "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.BatchAddVirtualCoinsReq" + } + } + ], + "responses": { + "200": { + "description": "新增数据数量", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/contributionValue/basic": { "get": { "description": "贡献值-基础设置(获取)", @@ -3369,6 +3414,44 @@ } } }, + "/api/institutionalManagement/eggEnergy/deleteVirtualCoin/{$id}": { + "delete": { + "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": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/eggPoint/manualScore": { "post": { "description": "蛋蛋分管理(人工打分)", @@ -4179,6 +4262,53 @@ } } }, + "/api/institutionalManagement/eggEnergy/updateVirtualCoin": { + "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.UpdateVirtualCoinReq" + } + } + ], + "responses": { + "200": { + "description": "更新数据数量", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/userCoin/eggEnergyUserCoinFlowList": { "post": { "description": "蛋蛋能量流水(查询)", @@ -9490,6 +9620,23 @@ } } }, + "md.AddVirtualCoinNode": { + "type": "object", + "properties": { + "exchange_ratio": { + "description": "兑换比例(与金额)", + "type": "string" + }, + "is_use": { + "description": "是否开启:0否 1是", + "type": "integer" + }, + "name": { + "description": "名称", + "type": "string" + } + } + }, "md.AdminListReq": { "type": "object", "properties": { @@ -10103,6 +10250,18 @@ } } }, + "md.BatchAddVirtualCoinsReq": { + "type": "object", + "properties": { + "list": { + "description": "新增的货币列表", + "type": "array", + "items": { + "$ref": "#/definitions/md.AddVirtualCoinNode" + } + } + } + }, "md.BatchSendGroupMessageReq": { "type": "object", "properties": { @@ -14535,6 +14694,26 @@ } } }, + "md.UpdateVirtualCoinReq": { + "type": "object", + "properties": { + "exchange_ratio": { + "description": "兑换比例(与金额)", + "type": "string" + }, + "id": { + "type": "integer" + }, + "is_use": { + "description": "是否开启:0否 1是", + "type": "integer" + }, + "name": { + "description": "名称", + "type": "string" + } + } + }, "md.UpdateWithdrawSettingReq": { "type": "object", "properties": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index efb85a1..c49365c 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -518,6 +518,18 @@ definitions: description: 标签名称 type: string type: object + md.AddVirtualCoinNode: + properties: + exchange_ratio: + description: 兑换比例(与金额) + type: string + is_use: + description: 是否开启:0否 1是 + type: integer + name: + description: 名称 + type: string + type: object md.AdminListReq: properties: limit: @@ -937,6 +949,14 @@ definitions: description: 微信号 type: string type: object + md.BatchAddVirtualCoinsReq: + properties: + list: + description: 新增的货币列表 + items: + $ref: '#/definitions/md.AddVirtualCoinNode' + type: array + type: object md.BatchSendGroupMessageReq: properties: content: @@ -4013,6 +4033,20 @@ definitions: description: 会员等级ID type: string type: object + md.UpdateVirtualCoinReq: + properties: + exchange_ratio: + description: 兑换比例(与金额) + type: string + id: + type: integer + is_use: + description: 是否开启:0否 1是 + type: integer + name: + description: 名称 + type: string + type: object md.UpdateWithdrawSettingReq: properties: condition_is_open: @@ -6075,8 +6109,7 @@ paths: in: body name: req required: true - schema: - type: object + schema: {} produces: - application/json responses: @@ -7276,6 +7309,37 @@ paths: summary: 制度中心-动态数据-动态数据流水(获取) tags: - 公排管理 + /api/institutionalManagement/eggEnergy/batchAddVirtualCoins: + 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.BatchAddVirtualCoinsReq' + produces: + - application/json + responses: + "200": + description: 新增数据数量 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-蛋蛋能量-批量新增币种 + tags: + - 蛋蛋能量 /api/institutionalManagement/eggEnergy/contributionValue/basic: get: consumes: @@ -7332,6 +7396,31 @@ paths: summary: 制度中心-蛋蛋能量-贡献值-基础设置(更新) tags: - 贡献值 + /api/institutionalManagement/eggEnergy/deleteVirtualCoin/{$id}: + delete: + consumes: + - application/json + description: 删除币种 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 删除数据数量 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-蛋蛋能量-删除币种 + tags: + - 蛋蛋能量 /api/institutionalManagement/eggEnergy/eggPoint/manualScore: post: consumes: @@ -7866,6 +7955,37 @@ paths: summary: 制度中心-蛋蛋能量-会员设置(更新) tags: - 蛋蛋能量 + /api/institutionalManagement/eggEnergy/updateVirtualCoin: + 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.UpdateVirtualCoinReq' + produces: + - application/json + responses: + "200": + description: 更新数据数量 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-蛋蛋能量-更新币种信息 + tags: + - 蛋蛋能量 /api/institutionalManagement/eggEnergy/userCoin/eggEnergyUserCoinFlowList: post: consumes: