印度包网
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.

312 lines
7.1 KiB

3 months ago
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已领取
// 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
}
2 months ago
type ShareCfgResp struct {
// 等级配置
ShareCfg []common.ConfigShare `json:"shareCfg"`
// 分享等级
ShareLevel int `json:"shareLevel"`
// 邀请人数
InviteCount int64 `json:"inviteCount"`
// 团队下注金额
BetCount int64 `json:"betCount"`
// 奖励金额
Amount int64 `json:"amount"`
// 总奖励
TotalAward int64 `json:"totalAward"`
// 当天奖励
TodayAward int64 `json:"todayAward"`
// 分享链接
ShareLink string `json:"shareLink"`
}
type RewardDetailsReq struct {
RewardType int `json:"rewardType"`
StartAt int64 `json:"startAt"`
EndAt int64 `json:"endAt"`
Page int `json:"page"`
PageSize int `json:"pageSize"`
}
type RewardDetailsResp struct {
Total int64 `json:"total"`
RewardAmount int64 `json:"rewardAmount"`
List []common.ShareReward `json:"list"`
}
type ShareRankUser struct { // 排行榜玩家
UserRank int `json:"userRank"` // 玩家排名
UserName string `json:"userName"` // 玩家昵称
UserCount int64 `json:"userCount"` // 玩家数值
UserIcon string `json:"userIcon"` // 玩家头像
UserAward int `json:"userAward"` // 玩家预计分奖比例(*10000)
UserAwardExpected int64 `json:"userAwardExpected"` // 玩家预计奖励
}
type OneShareNewTask struct { // 任务列表
TaskID int `json:"taskID"`
Desc string `json:"desc"`
Type int `json:"type"`
Progess int64 `json:"progess"`
Target int64 `json:"target"`
Reward int64 `json:"reward"`
Status int `json:"status"`
}
type RewardResp struct {
TopUsers []ShareRankUser `json:"topUsers"` // 前三玩家
TaskList []OneShareNewTask `json:"taskList"` // 任务列表
JackPot int64 `json:"jackPot"` // 奖池数值
}
type RankDetailsReq struct {
Previous bool `json:"previous"` // 历史列表
Page int `json:"page"`
PageSize int `json:"pageSize"`
}
type RankDetailsResp struct {
Total int64 `json:"total"`
RankUsers []ShareRankUser `json:"rankUsers"`
JackPot int64 `json:"jackPot"`
}
type ShareBannerResp struct {
JpgUrl string `json:"jpgUrl"` // 图片地址
ShareCode string `json:"shareCode"` // 分享码
SearchWord string `json:"searchWord"` // google search word
Desc string `json:"desc"` // 文案
ShareLink string `json:"shareLink"` // 分享链接
}
// Opt 1转到余额 2直接赠送
// PayAccount opt为2时必填
type ShareWithdrawReq struct {
Opt int `json:"Opt"`
Amount int64 `json:"Amount"`
// 可能对应多种结构
PayAccount map[string]interface{} `json:"PayAccount"`
}