Ver a proveniência

update

master
shenjiachi há 1 semana
ascendente
cometimento
b365b591f4
6 ficheiros alterados com 390 adições e 39 eliminações
  1. +1
    -1
      app/hdl/institutional_management/egg_energy/hdl_basic.go
  2. +1
    -1
      app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go
  3. +2
    -2
      app/hdl/setCenter/oss/aliyun/hdl_basic.go
  4. +144
    -12
      docs/docs.go
  5. +144
    -12
      docs/swagger.json
  6. +98
    -11
      docs/swagger.yaml

+ 1
- 1
app/hdl/institutional_management/egg_energy/hdl_basic.go Ver ficheiro

@@ -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()


+ 1
- 1
app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go Ver ficheiro

@@ -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 {


+ 2
- 2
app/hdl/setCenter/oss/aliyun/hdl_basic.go Ver ficheiro

@@ -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 {


+ 144
- 12
docs/docs.go Ver ficheiro

@@ -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": "价格趋势(获取)",


+ 144
- 12
docs/swagger.json Ver ficheiro

@@ -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": "价格趋势(获取)",


+ 98
- 11
docs/swagger.yaml Ver ficheiro

@@ -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:


Carregando…
Cancelar
Guardar