57 lines
2.4 KiB
Go
57 lines
2.4 KiB
Go
package doc
|
|
|
|
// MsgGateSignUpReq 用户注删请求
|
|
type MsgGateSignUpReq struct {
|
|
Platform uint32 `json:"Platform"` // 客户端平台(暂时无用, 保留字段)
|
|
Channel uint32 `json:"Channel"` // 登录渠道(区别用户登录渠道,不同渠道登录,即使用户名相同,也是全新的账号)
|
|
Device string `json:"Device,omitempty"` // 设备信息
|
|
Version string `json:"Version"` // 客户端版本
|
|
Username string `json:"Username,omitempty"` // 用户名
|
|
Password string `json:"Password,omitempty"` // 密码
|
|
}
|
|
|
|
// MsgGateSignUpAck 用户注删返回
|
|
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"` // 注册时间
|
|
}
|
|
|
|
// MsgGateLoginReq 用户登录请求
|
|
type MsgGateLoginReq struct {
|
|
Platform uint32 `json:"Platform"` // 客户端平台(暂时无用, 保留字段)
|
|
Channel uint32 `json:"Channel"` // 登录渠道(区别用户登录渠道,不同渠道登录,即使用户名相同,也是全新的账号)
|
|
Device string `json:"Device,omitempty"` // 设备信息
|
|
Version string `json:"Version"` // 客户端版本
|
|
Username string `json:"Username,omitempty"` // 用户名
|
|
Password string `json:"Password,omitempty"` // 密码
|
|
Token string `json:"Token,omitempty"` // 第三方登录时获取到的TOKEN
|
|
}
|
|
|
|
// GameServer 游戏服务器信息
|
|
type GameServer struct {
|
|
Id uint32 `json:"Id"` //服务器ID
|
|
Area string `json:"Area"` //大区
|
|
Name string `json:"Name"` //名称
|
|
Address string `json:"Address"` //地址
|
|
Online uint32 `json:"Online"` //在线人数
|
|
}
|
|
|
|
// MsgGateLoginAck 用户登录返回
|
|
type MsgGateLoginAck struct {
|
|
Token string `json:"Token"` // 用户TOKEN
|
|
UserId uint64 `json:"UserId"` // 用户ID
|
|
Username string `json:"Username"` // 用户名
|
|
RecentServer uint32 `json:"RecentServer"` // 最近登录的服务器ID
|
|
ServerList []*GameServer `json:"ServerList"` // 服务器列表
|
|
}
|
|
|
|
// MsgGateNoticeAck 游戏公告返回
|
|
type MsgGateNoticeAck struct {
|
|
Version string `json:"Version,omitempty"`
|
|
Title string `json:"Title,omitempty"`
|
|
Content string `json:"Content,omitempty"`
|
|
}
|