Browse Source

update

master
shenjiachi 1 week ago
parent
commit
bfb4612b3e
6 changed files with 31 additions and 35 deletions
  1. +2
    -2
      app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go
  2. +8
    -8
      app/md/financial_center/md_withdraw.go
  3. +1
    -1
      app/md/institutional_management/egg_energy/md_platform_revenue.go
  4. +9
    -10
      docs/docs.go
  5. +6
    -8
      docs/swagger.json
  6. +5
    -6
      docs/swagger.yaml

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

@@ -36,7 +36,7 @@ func GetVideoReward(c *gin.Context) {
} }
}(cfgDb) }(cfgDb)


unitPrice, err2 := cfgDb.SysCfgGetOneNoDataNoErr(enum2.VideoReward(enum2.VideoRewardUnitPrice).String())
unitPrice, err2 := cfgDb.SysCfgGetOneNoDataNoErr(enum2.VideoRewardUnitPrice)
if err2 != nil { if err2 != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err2.Error()) e.OutErr(c, e.ERR_INVALID_ARGS, err2.Error())
return return
@@ -45,7 +45,7 @@ func GetVideoReward(c *gin.Context) {
cfgDb.SysCfgInsert(enum2.VideoRewardUnitPrice, "", enum2.VideoReward(enum2.VideoRewardUnitPrice).String()) cfgDb.SysCfgInsert(enum2.VideoRewardUnitPrice, "", enum2.VideoReward(enum2.VideoRewardUnitPrice).String())
} }


ecpm, err3 := cfgDb.SysCfgGetOneNoDataNoErr(enum2.VideoReward(enum2.VideoRewardECPM).String())
ecpm, err3 := cfgDb.SysCfgGetOneNoDataNoErr(enum2.VideoRewardECPM)
if err3 != nil { if err3 != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err3.Error()) e.OutErr(c, e.ERR_INVALID_ARGS, err3.Error())
return return


+ 8
- 8
app/md/financial_center/md_withdraw.go View File

@@ -80,14 +80,14 @@ type WithdrawApplyAuditReq struct {


type WithdrawApplyInfo struct { type WithdrawApplyInfo struct {
model.FinWithdrawApply `xorm:"extends"` model.FinWithdrawApply `xorm:"extends"`
Nickname string `xorm:"usera.nickname"` // 用户名称
ParentID int64 `xorm:"parent_id"` // 推荐人ID
AliPayName string `xorm:"alipay.user_name"` // 支付宝昵称
AliPayAccount string `xorm:"alipay.user_id"` // 支付宝账号
WxPayName string `xorm:"wx.user_name"` // 微信昵称
WxPayAccount string `xorm:"wx.user_id"` // 微信账号
WithdrawType int `xorm:"withdraw_kind"` // 提现方式(1:支付宝 2:微信)
InviteCode string `xorm:"usera.system_invite_code"` // 邀请码
Nickname string `xorm:"nickname"` // 用户名称
ParentID int64 `xorm:"parent_uid"` // 推荐人ID
AliPayName string `xorm:"user_name"` // 支付宝昵称
AliPayAccount string `xorm:"user_id"` // 支付宝账号
WxPayName string `xorm:"user_name"` // 微信昵称
WxPayAccount string `xorm:"user_id"` // 微信账号
WithdrawType int `xorm:"withdraw_kind"` // 提现方式(1:支付宝 2:微信)
InviteCode string `xorm:"system_invite_code"` // 邀请码
} }


type GetWithdrawApplyListResp struct { type GetWithdrawApplyListResp struct {


+ 1
- 1
app/md/institutional_management/egg_energy/md_platform_revenue.go View File

@@ -7,7 +7,7 @@ type SetVideoRewardReq struct {


type GetVideoRewardResp struct { type GetVideoRewardResp struct {
UnitPrice string `json:"unit_price"` // 单价 UnitPrice string `json:"unit_price"` // 单价
Ecpm string `json:"ecmp"` // 当前 Ecpm 值
Ecpm string `json:"ecpm"` // 当前 Ecpm 值
} }


type ListPlatformRevenueReq struct { type ListPlatformRevenueReq struct {


+ 9
- 10
docs/docs.go View File

@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs package docs


import "github.com/swaggo/swag" import "github.com/swaggo/swag"
@@ -1524,9 +1523,7 @@ const docTemplate = `{
"name": "req", "name": "req",
"in": "body", "in": "body",
"required": true, "required": true,
"schema": {
"type": "object"
}
"schema": {}
} }
], ],
"responses": { "responses": {
@@ -9771,15 +9768,15 @@ const docTemplate = `{
"$ref": "#/definitions/md.AdminLogList" "$ref": "#/definitions/md.AdminLogList"
} }
}, },
"select_data": {
"total": {
"type": "integer"
},
"type_list": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true "additionalProperties": true
} }
},
"total": {
"type": "integer"
} }
} }
}, },
@@ -12314,7 +12311,7 @@ const docTemplate = `{
"md.GetVideoRewardResp": { "md.GetVideoRewardResp": {
"type": "object", "type": "object",
"properties": { "properties": {
"ecmp": {
"ecpm": {
"description": "当前 Ecpm 值", "description": "当前 Ecpm 值",
"type": "string" "type": "string"
}, },
@@ -16455,6 +16452,8 @@ var SwaggerInfo = &swag.Spec{
Description: "管理后台接口文档", Description: "管理后台接口文档",
InfoInstanceName: "swagger", InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate, SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
} }


func init() { func init() {


+ 6
- 8
docs/swagger.json View File

@@ -1516,9 +1516,7 @@
"name": "req", "name": "req",
"in": "body", "in": "body",
"required": true, "required": true,
"schema": {
"type": "object"
}
"schema": {}
} }
], ],
"responses": { "responses": {
@@ -9763,15 +9761,15 @@
"$ref": "#/definitions/md.AdminLogList" "$ref": "#/definitions/md.AdminLogList"
} }
}, },
"select_data": {
"total": {
"type": "integer"
},
"type_list": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true "additionalProperties": true
} }
},
"total": {
"type": "integer"
} }
} }
}, },
@@ -12306,7 +12304,7 @@
"md.GetVideoRewardResp": { "md.GetVideoRewardResp": {
"type": "object", "type": "object",
"properties": { "properties": {
"ecmp": {
"ecpm": {
"description": "当前 Ecpm 值", "description": "当前 Ecpm 值",
"type": "string" "type": "string"
}, },


+ 5
- 6
docs/swagger.yaml View File

@@ -581,13 +581,13 @@ definitions:
items: items:
$ref: '#/definitions/md.AdminLogList' $ref: '#/definitions/md.AdminLogList'
type: array type: array
select_data:
total:
type: integer
type_list:
items: items:
additionalProperties: true additionalProperties: true
type: object type: object
type: array type: array
total:
type: integer
type: object type: object
md.AdvertisingBase: md.AdvertisingBase:
properties: properties:
@@ -2325,7 +2325,7 @@ definitions:
type: object type: object
md.GetVideoRewardResp: md.GetVideoRewardResp:
properties: properties:
ecmp:
ecpm:
description: 当前 Ecpm 值 description: 当前 Ecpm 值
type: string type: string
unit_price: unit_price:
@@ -6194,8 +6194,7 @@ paths:
in: body in: body
name: req name: req
required: true required: true
schema:
type: object
schema: {}
produces: produces:
- application/json - application/json
responses: responses:


Loading…
Cancel
Save