瀏覽代碼

add swag

master
shenjiachi 1 周之前
父節點
當前提交
9af3ce6d91
共有 3 個檔案被更改,包括 489 行新增10 行删除
  1. +185
    -5
      docs/docs.go
  2. +182
    -3
      docs/swagger.json
  3. +122
    -2
      docs/swagger.yaml

+ 185
- 5
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() {


+ 182
- 3
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": {


+ 122
- 2
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:


Loading…
取消
儲存