You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
233 lines
4.6 KiB
233 lines
4.6 KiB
package values |
|
|
|
import "server/common" |
|
|
|
// Balance 总余额 |
|
// TotalCommission 可退出 |
|
// TotalWithdrawals 已退出 |
|
// Banners banner图 |
|
// TotalReferrals 总分享 |
|
// ShareLink 分享地址 |
|
// PopNewTask 是否弹出新手任务 |
|
// PopWithdraw 可退出弹窗 |
|
// PopWithdrawAmount 弹出退出金额 |
|
// NewReward 新手奖励金额 |
|
// LastReward 昨天收益 |
|
// LevelUpInfo 升级提示,如果升级了,该字段会有值 |
|
type ShareNewInfoResp struct { |
|
Balance int64 |
|
TotalCommission int64 |
|
TotalWithdrawals int64 |
|
TotalReferrals int64 |
|
Banners []string |
|
ShareLink string |
|
PopNewTask bool |
|
PopWithdraw bool |
|
PopWithdrawAmount int64 |
|
NewReward int64 |
|
LastReward struct { |
|
Total int64 |
|
Invitation int64 |
|
Recharge int64 |
|
Affiliate int64 |
|
Other int64 |
|
} |
|
LevelUpInfo common.LevelUpInfo |
|
NowLevel int |
|
NowExp int64 |
|
NextExp int64 |
|
Avatar string |
|
} |
|
|
|
type ShareNewTaskInfoResp struct { |
|
TaskList []OneShareNewTask |
|
} |
|
|
|
type ShareNewTaskDrawReq struct { |
|
TaskID int |
|
} |
|
|
|
type ShareNewTaskDrawResp struct { |
|
Reward int64 |
|
} |
|
|
|
// TaskID 任务id |
|
// Desc 任务描述 |
|
// Type 任务类型 |
|
// Progress 任务进度 |
|
// Target 任务目标 |
|
// Reward 任务奖励 |
|
// Status 任务状态,0进行中,1可领取,2已领取 |
|
type OneShareNewTask struct { |
|
TaskID int |
|
Desc string |
|
Type int |
|
Progess int64 |
|
Target int64 |
|
Reward int64 |
|
Status int |
|
} |
|
|
|
// Page 页码 |
|
// Num 一页个数,最大50 |
|
// Level int |
|
type ShareNewAffiliateReq struct { |
|
Page int |
|
Num int |
|
Level int |
|
} |
|
|
|
// Level1 每个等级人数 |
|
type ShareNewAffiliateResp struct { |
|
Level1 int64 |
|
Level2 int64 |
|
Level3 int64 |
|
Level4 int64 |
|
Level5 int64 |
|
Count int64 |
|
AffiliateList []OneShareNewAffiliate |
|
} |
|
|
|
// AffiliateCount 下级数量 |
|
type OneShareNewAffiliate struct { |
|
UID int |
|
Nick string |
|
AffiliateCount int64 |
|
LastLogin int64 |
|
} |
|
|
|
// Page 页码 |
|
// Num 一页个数,最大50 |
|
type ShareNewCommissionReq struct { |
|
Page int |
|
Num int |
|
} |
|
|
|
// All 总收益 |
|
// Invitation 总邀请收益 |
|
// Recharge 总充值收益 |
|
// Affiliate 总客损收益 |
|
// Other 总其他收益 |
|
type ShareNewCommissionResp struct { |
|
All int64 |
|
Invitation int64 |
|
Recharge int64 |
|
Affiliate int64 |
|
Other int64 |
|
List []OneShareNewCommission |
|
Count int64 |
|
} |
|
|
|
type OneShareNewCommission struct { |
|
Date string |
|
Invitation int64 |
|
Recharge int64 |
|
Affiliate int64 |
|
Other int64 |
|
} |
|
|
|
// Page 页码 |
|
// Num 一页个数,最大50 |
|
// Type 类型 0日榜 1周榜 2月榜 |
|
// Time 查询时间,0当前周期,1上一周期,以此类推 |
|
type ShareNewRankReq struct { |
|
Page int |
|
Num int |
|
Type int |
|
Time int |
|
} |
|
|
|
type ShareNewRankResp struct { |
|
List []*common.ShareRank |
|
Self *common.ShareRank |
|
Days []string |
|
Weeks []string |
|
Months []string |
|
} |
|
|
|
// 如果参数都是零代表当前没有任务或任务已超时 |
|
// NowLevel 当前等级 |
|
// NextLevel 下一等级 |
|
// Exp 当前经验 |
|
// LevelUpExp 升级所需经验 |
|
// TimeLeft 剩余时间,单位秒 |
|
// CanDraw 是否能领取 |
|
type ShareLimitTaskInfoResp struct { |
|
NowLevel common.LevelUpInfo |
|
NextLevel common.LevelUpInfo |
|
Exp int64 |
|
LevelUpExp int64 |
|
TimeLeft int64 |
|
CanDraw bool |
|
Reward int64 |
|
} |
|
|
|
// NowLevel 领取任务的等级 |
|
type ShareLimitTaskDrawReq struct { |
|
NowLevel int |
|
} |
|
|
|
type ShareLimitTaskDrawResp struct { |
|
Reward int64 |
|
} |
|
|
|
type ShareNewWithdrawInfoResp struct { |
|
TotalBalance int64 |
|
Withdrawable int64 |
|
Method int |
|
List []*WithdrawProduct |
|
WithDrawCount int |
|
TotalWithdrawCount int |
|
Tips string |
|
Accounts []*common.PayInfo |
|
NewList []*common.ConfigWithdrawChannels |
|
} |
|
|
|
// Type 类型 1转移到游戏账户 2退出 |
|
// PayAccount 退出信息,Type为2是不能为空 |
|
type ShareNewWithdrawReq struct { |
|
Type int `json:"Type" binding:"required"` |
|
AmountID int |
|
// 可能对应多种结构 |
|
PayAccount map[string]interface{} `json:"PayAccount"` |
|
} |
|
|
|
type ShareNewWithdrawResp struct { |
|
TotalBalance int64 |
|
Withdrawable int64 |
|
} |
|
|
|
type ShareNewWithdrawHisReq struct { |
|
Page int |
|
Num int |
|
} |
|
|
|
type ShareNewWithdrawHisResp struct { |
|
Count int64 |
|
List []OneShareNewWithdrawHis |
|
} |
|
|
|
type OneShareNewWithdrawHis struct { |
|
CreatedAt string |
|
OrderID string |
|
PayAccount string |
|
UID int |
|
Amount int64 |
|
Event int |
|
ProductID int |
|
Status uint8 |
|
FailReason string |
|
ChannelID int |
|
UPI int |
|
Scene int |
|
WithdrawCash int64 `json:"withdraw_cash"` |
|
} |
|
|
|
type ShareNewBroadcastReq struct { |
|
Page int |
|
Num int |
|
} |
|
|
|
type ShareNewBroadcastResp struct { |
|
List []string |
|
}
|
|
|