ecs/proto/json_external_gate.go

41 lines
963 B
Go
Raw Permalink Normal View History

2025-06-04 18:17:39 +08:00
package proto
type MsgGateSignUpReq struct {
2025-07-17 16:21:08 +08:00
MsgUserSignUpReq `json:",inline"`
2025-06-04 18:17:39 +08:00
}
type MsgGateSignUpAck struct {
2025-07-17 16:21:08 +08:00
MsgUserSignUpAck `json:",inline"`
2025-06-04 18:17:39 +08:00
}
type MsgGateLoginReq struct {
2025-07-17 16:21:08 +08:00
MsgUserLoginReq `json:",inline"`
2025-06-04 18:17:39 +08:00
}
type GameServer struct {
Id uint32 `json:"Id"` //服务器ID
2025-07-17 16:21:08 +08:00
Area string `json:"Area"` //服务器大区
Name string `json:"Name"` //服务器名称
Address string `json:"Address"` //服务器地址(ip:port)
2025-06-04 18:17:39 +08:00
Online uint32 `json:"Online"` //在线人数
2025-07-17 16:21:08 +08:00
Recent bool `json:"Recent"` //最近登录
RoleLv uint32 `json:"RoleLv"` //最高角色等级
2025-06-04 18:17:39 +08:00
}
type MsgGateLoginAck struct {
MsgUserLoginAck
ServerList []*GameServer `json:"ServerList"`
}
2025-07-17 16:21:08 +08:00
type MsgGatePhoneCaptchaReq struct {
Number string `json:"Number"` //手机号
}
type MsgGateImageCaptchaAck struct {
Image string `json:"Image"` //生成的图片验证码Base64
}
2025-06-04 18:17:39 +08:00
type MsgGateNoticeAck struct {
2025-07-17 16:21:08 +08:00
NoticeList []*Notice `json:"NoticeList"`
2025-06-04 18:17:39 +08:00
}