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.
154 lines
3.5 KiB
154 lines
3.5 KiB
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 |
|
WithdrawFee int64 |
|
} |
|
|
|
// 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"` // 页码 |
|
Num int `json:"Num" binding:"required"` // 一页的数目 |
|
Start *int64 `json:"Start"` // 开始时间戳 |
|
End *int64 `json:"End"` // 结束时间戳 |
|
} |
|
|
|
// BalanceHisResp 金币流水记录返回 |
|
type BalanceHisResp struct { |
|
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:"Num" 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:"ID" binding:"required"` |
|
} |
|
|
|
// FeedbackReq 意见反馈 |
|
type FeedbackReq struct { |
|
List []OneFeedback |
|
} |
|
|
|
// Index 问题序号 |
|
// Choose 选择的序号 如果选择其他,序号为0,需手动输入Context |
|
// Context 选择其他的时候的描述 |
|
type OneFeedback struct { |
|
Index int |
|
Choose []int |
|
Context string |
|
}
|
|
|