@@ -0,0 +1,54 @@
|
||||
package proto
|
||||
|
||||
// 新用户注册
|
||||
type NewUserRegisterMsg struct {
|
||||
UserId uint64 `json:"user_id"` // 用户id
|
||||
DeviceId string `json:"device_id"` // 用户设备标识
|
||||
Platform string `json:"platform"` // android ios h5
|
||||
Coin int64 `json:"coin"` // 用户金币
|
||||
IsVip int `json:"is_vip"` // 是否vip 0 否 1 是
|
||||
InviteUserId uint64 `json:"invite_user_id"` // 邀请用户id
|
||||
RegistTime int64 `json:"regist_time"` // 用户注册时间
|
||||
RegisterIp string `json:"register_ip"` // 用户注册ip
|
||||
ChannelCode string `json:"channel_code"` // 用户渠道码 区分大小写
|
||||
LastOnlineTime int64 `json:"last_online_time"` // 最后在线时间 unix时间戳 秒
|
||||
}
|
||||
|
||||
// 新用户邀请
|
||||
type NewUserInviteMsg struct {
|
||||
Id string `json:"id"` // 记录id
|
||||
UserId uint64 `json:"user_id"` // 用户id
|
||||
InviteUserId uint64 `json:"invite_user_id"` // 邀请用户id
|
||||
}
|
||||
|
||||
// 新用户访问
|
||||
type NewUserAccessMsg struct {
|
||||
UserId uint64 `json:"user_id"` // 用户id
|
||||
DeviceId string `json:"device_id"` // 用户设备标识
|
||||
Platform string `json:"platform"` // android ios h5
|
||||
Coin int64 `json:"coin"` // 用户金币
|
||||
IsVip int `json:"is_vip"` // 是否vip 0 否 1 是
|
||||
InviteUserId uint64 `json:"invite_user_id"` // 邀请用户id
|
||||
RegistTime int64 `json:"regist_time"` // 用户注册时间
|
||||
RegisterIp string `json:"register_ip"` // 用户注册ip
|
||||
ChannelCode string `json:"channel_code"` // 用户渠道码 区分大小写
|
||||
LastOnlineTime int64 `json:"last_online_time"` // 最后在线时间 unix时间戳 秒
|
||||
}
|
||||
|
||||
// 新用户充值消息
|
||||
type NewUserRechargeMsg struct {
|
||||
Id string `json:"id"` // 订单id
|
||||
OID string `json:"order_no"` // 第三方支付流水id
|
||||
OrderId string `json:"app_order_no"` // 流水id
|
||||
UserId uint64 `json:"user_id"` // 用户ID
|
||||
Money int64 `json:"order_amount"` // 订单金额,分
|
||||
Channel string `json:"payment_channel"` // 支付渠道名字
|
||||
RechargeType string `json:"payment_method"` // 支付编码,如:wechat
|
||||
OrderType string `json:"order_type"` // 订单产品类型 coin/vip
|
||||
OrderTime int64 `json:"order_time"` // 下单时间
|
||||
PayTime int64 `json:"pay_time"` // 支付时间
|
||||
PayAmount int64 `json:"pay_amount"` // 支付金额,分
|
||||
IsPaid int `json:"is_paid"` // 是否支付 0 未支付 1 已支付
|
||||
Poundage int32 `json:"poundage"` // 手续费,分
|
||||
ProductType int `json:"product_type"` // 支付产品类型 0 站群 1 棋牌
|
||||
}
|
||||
Reference in New Issue
Block a user