Browse Source

update

herolist
shenjiachi 2 weeks ago
parent
commit
8a6b584f6e
5 changed files with 33 additions and 4 deletions
  1. +2
    -1
      app/hdl/hdl_points_center.go
  2. +1
    -0
      app/md/md_points_center.go
  3. +11
    -1
      docs/docs.go
  4. +11
    -1
      docs/swagger.json
  5. +8
    -1
      docs/swagger.yaml

+ 2
- 1
app/hdl/hdl_points_center.go View File

@@ -871,7 +871,7 @@ func GetEggEnergyFlow(c *gin.Context) {
// PointsCenterCalcExchange
// @Summary 蛋蛋星球-积分中心-预估积分兑换
// @Tags 积分中心
// @Description 蛋蛋分明细(获取)
// @Description 预估积分兑换
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
@@ -917,6 +917,7 @@ func PointsCenterCalcExchange(c *gin.Context) {

resp := md.PointsCenterCalcExchangeResp{
Value: exchangeResp.GetEggEnergyAmount,
Fee: exchangeResp.AmountFee,
}

e.OutSuc(c, resp, nil)


+ 1
- 0
app/md/md_points_center.go View File

@@ -89,4 +89,5 @@ type GetEggEnergyFlowResp struct {

type PointsCenterCalcExchangeResp struct {
Value string `json:"value"` // 预估可兑换的金额
Fee string `json:"fee"` // 手续费
}

+ 11
- 1
docs/docs.go View File

@@ -2947,7 +2947,7 @@ const docTemplate = `{
},
"/api/v1/pointsCenter/calcExchange": {
"get": {
"description": "蛋蛋分明细(获取)",
"description": "预估积分兑换",
"consumes": [
"application/json"
],
@@ -4977,6 +4977,9 @@ const docTemplate = `{
"down_view_url": {
"type": "string"
},
"down_web_open": {
"type": "string"
},
"guide": {
"type": "array",
"items": {
@@ -4995,6 +4998,9 @@ const docTemplate = `{
"type": "string",
"example": "隐私协议链接"
},
"register_view_url": {
"type": "string"
},
"seo": {
"$ref": "#/definitions/md.Seo"
},
@@ -6031,6 +6037,10 @@ const docTemplate = `{
"md.PointsCenterCalcExchangeResp": {
"type": "object",
"properties": {
"fee": {
"description": "手续费",
"type": "string"
},
"value": {
"description": "预估可兑换的金额",
"type": "string"


+ 11
- 1
docs/swagger.json View File

@@ -2941,7 +2941,7 @@
},
"/api/v1/pointsCenter/calcExchange": {
"get": {
"description": "蛋蛋分明细(获取)",
"description": "预估积分兑换",
"consumes": [
"application/json"
],
@@ -4971,6 +4971,9 @@
"down_view_url": {
"type": "string"
},
"down_web_open": {
"type": "string"
},
"guide": {
"type": "array",
"items": {
@@ -4989,6 +4992,9 @@
"type": "string",
"example": "隐私协议链接"
},
"register_view_url": {
"type": "string"
},
"seo": {
"$ref": "#/definitions/md.Seo"
},
@@ -6025,6 +6031,10 @@
"md.PointsCenterCalcExchangeResp": {
"type": "object",
"properties": {
"fee": {
"description": "手续费",
"type": "string"
},
"value": {
"description": "预估可兑换的金额",
"type": "string"


+ 8
- 1
docs/swagger.yaml View File

@@ -458,6 +458,8 @@ definitions:
type: string
down_view_url:
type: string
down_web_open:
type: string
guide:
items:
$ref: '#/definitions/md.Guide'
@@ -471,6 +473,8 @@ definitions:
privacy_url:
example: 隐私协议链接
type: string
register_view_url:
type: string
seo:
$ref: '#/definitions/md.Seo'
title:
@@ -1194,6 +1198,9 @@ definitions:
type: object
md.PointsCenterCalcExchangeResp:
properties:
fee:
description: 手续费
type: string
value:
description: 预估可兑换的金额
type: string
@@ -3764,7 +3771,7 @@ paths:
get:
consumes:
- application/json
description: 蛋蛋分明细(获取)
description: 预估积分兑换
parameters:
- description: 验证参数Bearer和token空格拼接
in: header


Loading…
Cancel
Save