|
|
|
|
package values
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"server/common"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// SysConfigReq 请求系统配置
|
|
|
|
|
// Channel: 渠道号
|
|
|
|
|
// Version: 版本号
|
|
|
|
|
// IsRecord 该设备是否已记录
|
|
|
|
|
type SysConfigReq struct {
|
|
|
|
|
Channel int
|
|
|
|
|
Version int
|
|
|
|
|
GPSAdid string `json:"GPSAdid"`
|
|
|
|
|
IsRecord bool
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SysConfigResp 请求系统配置返回 Is:是否是审核服 URL:访问的地址
|
|
|
|
|
// IsHot 是否热更
|
|
|
|
|
// Games 游戏开关,游戏idU对应状态值,1是开启
|
|
|
|
|
// NewPlayerGift 初始赠送
|
|
|
|
|
// PhoneBonus 手机登录/绑定手机赠送
|
|
|
|
|
type SysConfigResp struct {
|
|
|
|
|
Is bool
|
|
|
|
|
URL string
|
|
|
|
|
IsHot bool
|
|
|
|
|
Version int
|
|
|
|
|
NewPlayerGift int64
|
|
|
|
|
PhoneBonus int64
|
|
|
|
|
ServiceTelegram string
|
|
|
|
|
ServiceWhatsapp string
|
|
|
|
|
ServiceEmail string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type OneUserInfoVip struct {
|
|
|
|
|
Cashback int64
|
|
|
|
|
Bonus int64
|
|
|
|
|
BonusWeek int64
|
|
|
|
|
WithdrawFee int64
|
|
|
|
|
WithdrawCount int
|
|
|
|
|
WithdrawAmount int
|
|
|
|
|
Exp int64
|
|
|
|
|
Level int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Recharge 充值总额
|
|
|
|
|
// VIPLevel vip等级
|
|
|
|
|
// AppSpinCount app下载奖励转盘剩余次数
|
|
|
|
|
// Feedback 是否反馈过
|
|
|
|
|
// NewPddShare 是否有新的pdd邀请
|
|
|
|
|
// RechargeBack 是否能参与充值返还活动
|
|
|
|
|
type UserInfoResp struct {
|
|
|
|
|
UID int
|
|
|
|
|
Nick string
|
|
|
|
|
Avatar string
|
|
|
|
|
Recharge int64
|
|
|
|
|
VIPLevel int
|
|
|
|
|
Currencys map[common.CurrencyType]int64
|
|
|
|
|
AppSpinCount int
|
|
|
|
|
Feedback bool
|
|
|
|
|
NewPddShare bool
|
|
|
|
|
Birth int64
|
|
|
|
|
Phone string
|
|
|
|
|
CurrentVip *OneUserInfoVip
|
|
|
|
|
NextVip *OneUserInfoVip
|
|
|
|
|
Activitys struct {
|
|
|
|
|
RechargeBack bool
|
|
|
|
|
DaySign bool
|
|
|
|
|
WeekCard bool // 是否弹出周卡
|
|
|
|
|
LuckyShop bool // 是否弹出幸运商店
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BalanceHisReq 请求金币流水记录
|
|
|
|
|
type BalanceHisReq struct {
|
|
|
|
|
Page int `json:"page"` // 页码
|
|
|
|
|
PageSize int `json:"pageSize" binding:"required"` // 一页的数目
|
|
|
|
|
Start *int64 `json:"startAt"` // 开始时间戳
|
|
|
|
|
End *int64 `json:"endAt"` // 结束时间戳
|
|
|
|
|
Type int `json:"type"` // (0:全部,1:加,2:减)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BalanceHisResp 金币流水记录返回
|
|
|
|
|
type BalanceHisResp struct {
|
|
|
|
|
TotalAmount int64 `json:"TotalAmount"`
|
|
|
|
|
Count int64 `json:"Count"`
|
|
|
|
|
List []common.CurrencyBalance `json:"List"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NoticeListResp
|
|
|
|
|
type NoticeListResp struct {
|
|
|
|
|
List []common.ConfigNotice
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetUserInfoReq 请求用户的信息,通用于房间内的查看用户详情请求
|
|
|
|
|
// 如果是查看自己的可以不传uid
|
|
|
|
|
type GetUserInfoReq struct {
|
|
|
|
|
UID int `json:"UID"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// EditUserInfoReq 修改用户信息请求,修改的字段就发,不修改则不发
|
|
|
|
|
type EditUserInfoReq struct {
|
|
|
|
|
Nick *string `json:"Nick"`
|
|
|
|
|
Avatar *string `json:"Avatar"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MailListReq 获取邮件列表
|
|
|
|
|
// Page 页码
|
|
|
|
|
// Num 个数
|
|
|
|
|
// Tag 请求类型
|
|
|
|
|
type MailListReq struct {
|
|
|
|
|
Page int `json:"page"`
|
|
|
|
|
Num int `json:"pageSize" binding:"required"`
|
|
|
|
|
Tag int `json:"tag"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MailListResp 返回邮件列表
|
|
|
|
|
// List 邮件列表
|
|
|
|
|
// Count 总数
|
|
|
|
|
type MailListResp struct {
|
|
|
|
|
List []common.Mail
|
|
|
|
|
Count int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ReadMailReq 读取一封邮件
|
|
|
|
|
// ID 邮件id
|
|
|
|
|
type ReadMailReq struct {
|
|
|
|
|
ID int `json:"id" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ReadMailResp 读取一封邮件
|
|
|
|
|
// Mail 邮件
|
|
|
|
|
type ReadMailResp struct {
|
|
|
|
|
Mail common.Mail
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DrawMailReq 领取一封邮件
|
|
|
|
|
// ID 邮件id
|
|
|
|
|
type DrawMailReq struct {
|
|
|
|
|
ID int `json:"id" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DeleteMailReq 删除一封邮件
|
|
|
|
|
// ID 邮件id
|
|
|
|
|
type DeleteMailReq struct {
|
|
|
|
|
ID []int `json:"ids" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FeedbackReq 意见反馈
|
|
|
|
|
type FeedbackReq struct {
|
|
|
|
|
List []OneFeedback
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Index 问题序号
|
|
|
|
|
// Choose 选择的序号 如果选择其他,序号为0,需手动输入Context
|
|
|
|
|
// Context 选择其他的时候的描述
|
|
|
|
|
type OneFeedback struct {
|
|
|
|
|
Index int
|
|
|
|
|
Choose []int
|
|
|
|
|
Context string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FavoriteGameReq struct {
|
|
|
|
|
GameProvider int // 游戏供应商
|
|
|
|
|
GameId int // 游戏ID
|
|
|
|
|
Cancel bool // 是否取消
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WithdrawProduct struct {
|
|
|
|
|
ID int `json:"amount_id" redis:"amount_id" table:"amount_id"` // id
|
|
|
|
|
Method int `json:"withdrawal_method" redis:"withdrawal_method" table:"withdrawal_method"` // 提现方式 1UPI 2Bank 3UPI+Bank
|
|
|
|
|
Amount int64 `json:"withdrawal_amount" redis:"withdrawal_amount" table:"withdrawal_amount"`
|
|
|
|
|
ServiceCharge string `json:"service_charge" redis:"service_charge" table:"service_charge"`
|
|
|
|
|
PayGold int64 `json:"pay_gold" redis:"pay_gold" table:"pay_gold"`
|
|
|
|
|
ReceiptType int `json:"receipt_type" redis:"receipt_type" table:"receipt_type"` // 到账类型 1实时 2延时
|
|
|
|
|
}
|