@@ -36,7 +36,7 @@ func GetVideoReward(c *gin.Context) { | |||
} | |||
}(cfgDb) | |||
unitPrice, err2 := cfgDb.SysCfgGetOneNoDataNoErr(enum2.VideoReward(enum2.VideoRewardUnitPrice).String()) | |||
unitPrice, err2 := cfgDb.SysCfgGetOneNoDataNoErr(enum2.VideoRewardUnitPrice) | |||
if err2 != nil { | |||
e.OutErr(c, e.ERR_INVALID_ARGS, err2.Error()) | |||
return | |||
@@ -45,7 +45,7 @@ func GetVideoReward(c *gin.Context) { | |||
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 { | |||
e.OutErr(c, e.ERR_INVALID_ARGS, err3.Error()) | |||
return | |||
@@ -80,14 +80,14 @@ type WithdrawApplyAuditReq struct { | |||
type WithdrawApplyInfo struct { | |||
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 { | |||
@@ -7,7 +7,7 @@ type SetVideoRewardReq struct { | |||
type GetVideoRewardResp struct { | |||
UnitPrice string `json:"unit_price"` // 单价 | |||
Ecpm string `json:"ecmp"` // 当前 Ecpm 值 | |||
Ecpm string `json:"ecpm"` // 当前 Ecpm 值 | |||
} | |||
type ListPlatformRevenueReq struct { | |||
@@ -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" | |||
@@ -1524,9 +1523,7 @@ const docTemplate = `{ | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"type": "object" | |||
} | |||
"schema": {} | |||
} | |||
], | |||
"responses": { | |||
@@ -9771,15 +9768,15 @@ const docTemplate = `{ | |||
"$ref": "#/definitions/md.AdminLogList" | |||
} | |||
}, | |||
"select_data": { | |||
"total": { | |||
"type": "integer" | |||
}, | |||
"type_list": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": true | |||
} | |||
}, | |||
"total": { | |||
"type": "integer" | |||
} | |||
} | |||
}, | |||
@@ -12314,7 +12311,7 @@ const docTemplate = `{ | |||
"md.GetVideoRewardResp": { | |||
"type": "object", | |||
"properties": { | |||
"ecmp": { | |||
"ecpm": { | |||
"description": "当前 Ecpm 值", | |||
"type": "string" | |||
}, | |||
@@ -16455,6 +16452,8 @@ var SwaggerInfo = &swag.Spec{ | |||
Description: "管理后台接口文档", | |||
InfoInstanceName: "swagger", | |||
SwaggerTemplate: docTemplate, | |||
LeftDelim: "{{", | |||
RightDelim: "}}", | |||
} | |||
func init() { | |||
@@ -1516,9 +1516,7 @@ | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"type": "object" | |||
} | |||
"schema": {} | |||
} | |||
], | |||
"responses": { | |||
@@ -9763,15 +9761,15 @@ | |||
"$ref": "#/definitions/md.AdminLogList" | |||
} | |||
}, | |||
"select_data": { | |||
"total": { | |||
"type": "integer" | |||
}, | |||
"type_list": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": true | |||
} | |||
}, | |||
"total": { | |||
"type": "integer" | |||
} | |||
} | |||
}, | |||
@@ -12306,7 +12304,7 @@ | |||
"md.GetVideoRewardResp": { | |||
"type": "object", | |||
"properties": { | |||
"ecmp": { | |||
"ecpm": { | |||
"description": "当前 Ecpm 值", | |||
"type": "string" | |||
}, | |||
@@ -581,13 +581,13 @@ definitions: | |||
items: | |||
$ref: '#/definitions/md.AdminLogList' | |||
type: array | |||
select_data: | |||
total: | |||
type: integer | |||
type_list: | |||
items: | |||
additionalProperties: true | |||
type: object | |||
type: array | |||
total: | |||
type: integer | |||
type: object | |||
md.AdvertisingBase: | |||
properties: | |||
@@ -2325,7 +2325,7 @@ definitions: | |||
type: object | |||
md.GetVideoRewardResp: | |||
properties: | |||
ecmp: | |||
ecpm: | |||
description: 当前 Ecpm 值 | |||
type: string | |||
unit_price: | |||
@@ -6194,8 +6194,7 @@ paths: | |||
in: body | |||
name: req | |||
required: true | |||
schema: | |||
type: object | |||
schema: {} | |||
produces: | |||
- application/json | |||
responses: | |||