ecs/proto/json_external_gate.go
2025-07-17 16:21:08 +08:00

41 lines
963 B
Go

package proto
type MsgGateSignUpReq struct {
MsgUserSignUpReq `json:",inline"`
}
type MsgGateSignUpAck struct {
MsgUserSignUpAck `json:",inline"`
}
type MsgGateLoginReq struct {
MsgUserLoginReq `json:",inline"`
}
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"` //最高角色等级
}
type MsgGateLoginAck struct {
MsgUserLoginAck
ServerList []*GameServer `json:"ServerList"`
}
type MsgGatePhoneCaptchaReq struct {
Number string `json:"Number"` //手机号
}
type MsgGateImageCaptchaAck struct {
Image string `json:"Image"` //生成的图片验证码Base64
}
type MsgGateNoticeAck struct {
NoticeList []*Notice `json:"NoticeList"`
}