Browse Source

update

adv_callback
shenjiachi 1 month ago
parent
commit
b365b591f4
6 changed files with 390 additions and 39 deletions
  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 View File

@@ -24,7 +24,7 @@ import (
// @param Authorization header string true "验证参数Bearer和token空格拼接" // @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Success 200 {object} []md.VirtualCoin "成功返回" // @Success 200 {object} []md.VirtualCoin "成功返回"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/availableEnergy/list [post]
// @Router /api/institutionalManagement/eggEnergy/getVirtualCoinList [get]
func GetVirtualCoinList(c *gin.Context) { func GetVirtualCoinList(c *gin.Context) {
virtualCoinDb := implement.NewVirtualCoinDb(db.Db) virtualCoinDb := implement.NewVirtualCoinDb(db.Db)
coins, err := virtualCoinDb.VirtualCoinFindAll() coins, err := virtualCoinDb.VirtualCoinFindAll()


+ 1
- 1
app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go View File

@@ -71,7 +71,7 @@ func SetVideoReward(c *gin.Context) {
// @Param req body md.ListPlatformRevenueReq true "分页信息必填" // @Param req body md.ListPlatformRevenueReq true "分页信息必填"
// @Success 200 {object} md.ListPlatformRevenueResp "具体数据" // @Success 200 {object} md.ListPlatformRevenueResp "具体数据"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/globalData/fundDataList [post]
// @Router /api/institutionalManagement/eggEnergy/globalData/platformRevenueList [post]
func ListPlatformRevenue(c *gin.Context) { func ListPlatformRevenue(c *gin.Context) {
var req *md.ListPlatformRevenueReq var req *md.ListPlatformRevenueReq
if err1 := c.ShouldBindJSON(&req); err1 != nil { if err1 := c.ShouldBindJSON(&req); err1 != nil {


+ 2
- 2
app/hdl/setCenter/oss/aliyun/hdl_basic.go View File

@@ -19,7 +19,7 @@ import (
// @param Authorization header string true "验证参数Bearer和token空格拼接" // @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Success 200 {object} md.GetBasicResp "设置列表" // @Success 200 {object} md.GetBasicResp "设置列表"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/comm/oss/getOssUrl [get]
// @Router /api/comm/oss/getBasic [get]
func GetBasic(c *gin.Context) { func GetBasic(c *gin.Context) {
redisConn := cache.GetPool().Get() redisConn := cache.GetPool().Get()
sysCfgDb := implement.NewSysCfgDb(db.Db, redisConn) sysCfgDb := implement.NewSysCfgDb(db.Db, redisConn)
@@ -85,7 +85,7 @@ func GetBasic(c *gin.Context) {
// @param req body md.SetBasicReq true "上传需要修改的信息" // @param req body md.SetBasicReq true "上传需要修改的信息"
// @Success 200 {string} "success" // @Success 200 {string} "success"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/comm/oss/getOssUrl [get]
// @Router /api/comm/oss/setBasic [post]
func SetBasic(c *gin.Context) { func SetBasic(c *gin.Context) {
var req *md.SetBasicReq var req *md.SetBasicReq
if err1 := c.ShouldBindJSON(&req); err1 != nil { if err1 := c.ShouldBindJSON(&req); err1 != nil {


+ 144
- 12
docs/docs.go View File

@@ -62,8 +62,46 @@ const docTemplate = `{
} }
} }
}, },
"/api/comm/oss/getOssUrl": {
"/api/comm/oss/getBasic": {
"get": { "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": "对象存储设置(更新)", "description": "对象存储设置(更新)",
"consumes": [ "consumes": [
"application/json" "application/json"
@@ -150,7 +188,7 @@ const docTemplate = `{
}, },
"/api/institutionalManagement/eggEnergy/availableEnergy/list": { "/api/institutionalManagement/eggEnergy/availableEnergy/list": {
"post": { "post": {
"description": "查询所有币种(获取)",
"description": "动态数据流水(获取)",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@@ -158,9 +196,9 @@ const docTemplate = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"蛋蛋能量"
"公排管理"
], ],
"summary": "制度中心-蛋蛋能量-查询所有币种(获取)",
"summary": "制度中心-动态数据-动态数据流水(获取)",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
@@ -168,16 +206,22 @@ const docTemplate = `{
"name": "Authorization", "name": "Authorization",
"in": "header", "in": "header",
"required": true "required": true
},
{
"description": "页数、每页大小必传 起止时间、持有类型选传",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DynamicDataFlowListReq"
}
} }
], ],
"responses": { "responses": {
"200": { "200": {
"description": "成功返回", "description": "成功返回",
"schema": { "schema": {
"type": "array",
"items": {
"$ref": "#/definitions/md.VirtualCoin"
}
"$ref": "#/definitions/md.DynamicDataFlowListResp"
} }
}, },
"400": { "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": { "/api/institutionalManagement/eggEnergy/globalData/coreDataList": {
"get": { "get": {
"description": "数据概览(获取)", "description": "数据概览(获取)",
@@ -314,7 +399,7 @@ const docTemplate = `{
}, },
"/api/institutionalManagement/eggEnergy/globalData/fundDataList": { "/api/institutionalManagement/eggEnergy/globalData/fundDataList": {
"post": { "post": {
"description": "平台营收数据(获取)",
"description": "新增数据列表(获取)",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@@ -324,7 +409,7 @@ const docTemplate = `{
"tags": [ "tags": [
"蛋蛋能量" "蛋蛋能量"
], ],
"summary": "制度中心-蛋蛋能量-平台营收数据(获取)",
"summary": "制度中心-蛋蛋能量-新增数据列表(获取)",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
@@ -339,7 +424,7 @@ const docTemplate = `{
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/md.ListPlatformRevenueReq"
"$ref": "#/definitions/md.GetFundDataListReq"
} }
} }
], ],
@@ -347,7 +432,7 @@ const docTemplate = `{
"200": { "200": {
"description": "具体数据", "description": "具体数据",
"schema": { "schema": {
"$ref": "#/definitions/md.ListPlatformRevenueResp"
"$ref": "#/definitions/md.GetFundDataListResp"
} }
}, },
"400": { "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": { "/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": {
"get": { "get": {
"description": "价格趋势(获取)", "description": "价格趋势(获取)",


+ 144
- 12
docs/swagger.json View File

@@ -55,8 +55,46 @@
} }
} }
}, },
"/api/comm/oss/getOssUrl": {
"/api/comm/oss/getBasic": {
"get": { "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": "对象存储设置(更新)", "description": "对象存储设置(更新)",
"consumes": [ "consumes": [
"application/json" "application/json"
@@ -143,7 +181,7 @@
}, },
"/api/institutionalManagement/eggEnergy/availableEnergy/list": { "/api/institutionalManagement/eggEnergy/availableEnergy/list": {
"post": { "post": {
"description": "查询所有币种(获取)",
"description": "动态数据流水(获取)",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@@ -151,9 +189,9 @@
"application/json" "application/json"
], ],
"tags": [ "tags": [
"蛋蛋能量"
"公排管理"
], ],
"summary": "制度中心-蛋蛋能量-查询所有币种(获取)",
"summary": "制度中心-动态数据-动态数据流水(获取)",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
@@ -161,16 +199,22 @@
"name": "Authorization", "name": "Authorization",
"in": "header", "in": "header",
"required": true "required": true
},
{
"description": "页数、每页大小必传 起止时间、持有类型选传",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DynamicDataFlowListReq"
}
} }
], ],
"responses": { "responses": {
"200": { "200": {
"description": "成功返回", "description": "成功返回",
"schema": { "schema": {
"type": "array",
"items": {
"$ref": "#/definitions/md.VirtualCoin"
}
"$ref": "#/definitions/md.DynamicDataFlowListResp"
} }
}, },
"400": { "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": { "/api/institutionalManagement/eggEnergy/globalData/coreDataList": {
"get": { "get": {
"description": "数据概览(获取)", "description": "数据概览(获取)",
@@ -307,7 +392,7 @@
}, },
"/api/institutionalManagement/eggEnergy/globalData/fundDataList": { "/api/institutionalManagement/eggEnergy/globalData/fundDataList": {
"post": { "post": {
"description": "平台营收数据(获取)",
"description": "新增数据列表(获取)",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@@ -317,7 +402,7 @@
"tags": [ "tags": [
"蛋蛋能量" "蛋蛋能量"
], ],
"summary": "制度中心-蛋蛋能量-平台营收数据(获取)",
"summary": "制度中心-蛋蛋能量-新增数据列表(获取)",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
@@ -332,7 +417,7 @@
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/md.ListPlatformRevenueReq"
"$ref": "#/definitions/md.GetFundDataListReq"
} }
} }
], ],
@@ -340,7 +425,7 @@
"200": { "200": {
"description": "具体数据", "description": "具体数据",
"schema": { "schema": {
"$ref": "#/definitions/md.ListPlatformRevenueResp"
"$ref": "#/definitions/md.GetFundDataListResp"
} }
}, },
"400": { "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": { "/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": {
"get": { "get": {
"description": "价格趋势(获取)", "description": "价格趋势(获取)",


+ 98
- 11
docs/swagger.yaml View File

@@ -1327,8 +1327,33 @@ paths:
summary: 通用请求-对象存储-上传许可链接(获取) summary: 通用请求-对象存储-上传许可链接(获取)
tags: tags:
- 对象存储 - 对象存储
/api/comm/oss/getOssUrl:
/api/comm/oss/getBasic:
get: 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: consumes:
- application/json - application/json
description: 对象存储设置(更新) description: 对象存储设置(更新)
@@ -1388,29 +1413,33 @@ paths:
post: post:
consumes: consumes:
- application/json - application/json
description: 查询所有币种(获取)
description: 动态数据流水(获取)
parameters: parameters:
- description: 验证参数Bearer和token空格拼接 - description: 验证参数Bearer和token空格拼接
in: header in: header
name: Authorization name: Authorization
required: true required: true
type: string type: string
- description: 页数、每页大小必传 起止时间、持有类型选传
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.DynamicDataFlowListReq'
produces: produces:
- application/json - application/json
responses: responses:
"200": "200":
description: 成功返回 description: 成功返回
schema: schema:
items:
$ref: '#/definitions/md.VirtualCoin'
type: array
$ref: '#/definitions/md.DynamicDataFlowListResp'
"400": "400":
description: 具体错误 description: 具体错误
schema: schema:
$ref: '#/definitions/md.Response' $ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋能量-查询所有币种(获取)
summary: 制度中心-动态数据-动态数据流水(获取)
tags: tags:
- 蛋蛋能量
- 公排管理
/api/institutionalManagement/eggEnergy/getBasic: /api/institutionalManagement/eggEnergy/getBasic:
get: get:
consumes: consumes:
@@ -1436,6 +1465,33 @@ paths:
summary: 制度中心-蛋蛋能量-基础设置(获取) summary: 制度中心-蛋蛋能量-基础设置(获取)
tags: 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: /api/institutionalManagement/eggEnergy/globalData/coreDataList:
get: get:
consumes: consumes:
@@ -1496,7 +1552,7 @@ paths:
post: post:
consumes: consumes:
- application/json - application/json
description: 平台营收数据(获取)
description: 新增数据列表(获取)
parameters: parameters:
- description: 验证参数Bearer和token空格拼接 - description: 验证参数Bearer和token空格拼接
in: header in: header
@@ -1508,19 +1564,19 @@ paths:
name: req name: req
required: true required: true
schema: schema:
$ref: '#/definitions/md.ListPlatformRevenueReq'
$ref: '#/definitions/md.GetFundDataListReq'
produces: produces:
- application/json - application/json
responses: responses:
"200": "200":
description: 具体数据 description: 具体数据
schema: schema:
$ref: '#/definitions/md.ListPlatformRevenueResp'
$ref: '#/definitions/md.GetFundDataListResp'
"400": "400":
description: 具体错误 description: 具体错误
schema: schema:
$ref: '#/definitions/md.Response' $ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋能量-平台营收数据(获取)
summary: 制度中心-蛋蛋能量-新增数据列表(获取)
tags: tags:
- 蛋蛋能量 - 蛋蛋能量
/api/institutionalManagement/eggEnergy/globalData/fundDataRecordList: /api/institutionalManagement/eggEnergy/globalData/fundDataRecordList:
@@ -1554,6 +1610,37 @@ paths:
summary: 制度中心-蛋蛋能量-新增数据列表详情(查询) summary: 制度中心-蛋蛋能量-新增数据列表详情(查询)
tags: 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: /api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve:
get: get:
consumes: consumes:


Loading…
Cancel
Save