111 lines
3.9 KiB
Go
111 lines
3.9 KiB
Go
package old
|
||
|
||
//type UserOrigin struct {
|
||
// Platform uint32 `json:"Platform"` // 客户端平台(暂时无用, 保留字段)
|
||
// Channel uint32 `json:"Channel"` // 登录渠道(区别用户登录渠道,不同渠道登录,即使用户名相同,也是全新的账号)
|
||
// Machine uint32 `json:"Machine"` // 抄过来的字段,不知道干嘛的
|
||
// Version string `json:"Version"` // 客户端版本
|
||
//}
|
||
//
|
||
//type UserAuth struct {
|
||
// Username string `json:"Username,omitempty"` // 用户名
|
||
// Password string `json:"Password,omitempty"` // 密码
|
||
//}
|
||
//
|
||
//type MsgGateSignUpReq struct {
|
||
// UserOrigin
|
||
// UserAuth
|
||
//}
|
||
//
|
||
//type MsgGateSignUpAck struct {
|
||
// UserId uint64 `json:"UserId"` // 用户ID
|
||
// Platform uint32 `json:"Platform"` // 参考UserOrigin
|
||
// Channel uint32 `json:"Channel"` // 参考UserOrigin
|
||
// Username string `json:"Username"` // 用户名
|
||
// CreateTime int64 `json:"CreateTime"` // 密码
|
||
//}
|
||
//
|
||
//type TapTapArgs struct {
|
||
// MacKey string `json:"MacKey,omitempty"`
|
||
//}
|
||
|
||
//type UserThirdArgs struct {
|
||
// //TapTap *TapTapArgs `json:"TapTap,omitempty"`
|
||
//}
|
||
//
|
||
//type UserThird struct {
|
||
// Token string `json:"Token,omitempty"` // 第三方登录的TOKEN
|
||
// Args *UserThirdArgs `json:"Args,omitempty"` // 第三方登录的其他参数
|
||
//}
|
||
|
||
//type MsgGateLoginReq struct {
|
||
// UserOrigin
|
||
// *UserAuth
|
||
// *UserThird
|
||
//}
|
||
|
||
//type GameServer struct {
|
||
// Id uint32 `json:"Id"`
|
||
// Area string `json:"Area"`
|
||
// Name string `json:"Name"`
|
||
// Address string `json:"Address"`
|
||
// Online uint32 `json:"Online"`
|
||
// Charges uint32 `json:"-"`
|
||
//}
|
||
|
||
//type MsgGateLoginAck struct {
|
||
// Token string `json:"Token"`
|
||
// Username string `json:"Username"`
|
||
// ServerList []*GameServer `json:"ServerList"`
|
||
//}
|
||
|
||
type MsgNoticeAck struct {
|
||
Version string `json:"Version,omitempty"`
|
||
Title string `json:"Title,omitempty"`
|
||
Content string `json:"Content,omitempty"`
|
||
}
|
||
|
||
// MsgIOSWechatChargeCallbackReq IOS充值回调
|
||
type MsgIOSWechatChargeCallbackReq struct {
|
||
Status int32 `json:"status"` //支付状态: 3-支付成功, 4-支付失败, 5-已撤销, 6-已退款, 7-订单关闭
|
||
TransactionId string `json:"transactionId"` //微信订单号(4200001781202303033535369313)
|
||
Amount uint32 `json:"amount"` //订单总金额, 单位为分
|
||
OrderNo string `json:"orderNo"` //平台交易号(385827177821786100)
|
||
PayerCurrency string `json:"payer_currency"` //币种, CNY:人民币,境内商户号仅支持人民币
|
||
AppletOpenid string `json:"applet_openid"` //用户游戏中 Openid
|
||
PayOpenid string `json:"pay_openid"` //支付时 OpenId
|
||
Sign string `json:"sign"` //签名
|
||
}
|
||
|
||
type MsgIOSWechatChargeCallbackAck struct {
|
||
}
|
||
|
||
type QuickMessageData struct {
|
||
Uid string `xml:"uid"` // 必有 购买道具的用户uid
|
||
Username string `xml:"login_name"` // 必有 购买道具的用户username
|
||
OutOrderNo string `xml:"out_order_no"` // 可为空 游戏下单时传递的游戏订单号,原样返回
|
||
OrderNo string `xml:"order_no"` // 必有 SDK唯一订单号
|
||
PayTime string `xml:"pay_time"` // 必有 用户支付时间,如2017-02-06 14:22:32
|
||
Amount string `xml:"amount"` // 必有 用户支付金额,单位元,游戏最终发放道具金额应以此为准
|
||
Status int `xml:"status"` // 必有 充值状态:0成功, 1失败(为1时 应返回FAILED失败)
|
||
ExtrasParams string `xml:"extras_params"` // 必有 客户端下单时透传参数 原样返回
|
||
}
|
||
|
||
type QuickMessage struct {
|
||
Message *QuickMessageData `xml:"message"`
|
||
}
|
||
|
||
type MsgQuickGameChargeCallbackReq struct {
|
||
Sign string `json:"sign"`
|
||
Md5Sign string `json:"md5Sign"`
|
||
NtData string `json:"nt_data"`
|
||
}
|
||
|
||
type MsgIOSWechatAccessTokenExpiredCallbackReq struct {
|
||
AppletId string `json:"appletId"`
|
||
Sign string `json:"sign"`
|
||
}
|
||
|
||
type MsgIOSWechatAccessTokenExpiredCallbackAck struct {
|
||
}
|