66 lines
2.7 KiB
Go
66 lines
2.7 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"` //服务器地址(ip:port)
|
|
Online uint32 `json:"Online"` //在线人数
|
|
Recent bool `json:"Recent"` //最近登录的
|
|
RoleLv uint32 `json:"RoleLv"` //最高角色等级
|
|
}
|
|
|
|
// 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"` // 服务器列表
|
|
}
|
|
|
|
// Notice 公告
|
|
type Notice struct {
|
|
Type string `json:"Type"` //活动/公告
|
|
Title string `json:"Title"` //标题
|
|
Content string `json:"Content"` //内容
|
|
BeginTime int64 `json:"BeginTime"` //开始时间
|
|
EndTime int64 `json:"EndTime"` //结束时间
|
|
}
|
|
|
|
// MsgGateNoticeAck 游戏公告返回
|
|
type MsgGateNoticeAck struct {
|
|
NoticeList []*Notice `json:"NoticeList"` //公告列表
|
|
}
|