feat 初始化
This commit is contained in:
35
protofile/SocketServer/sources/service.proto
Normal file
35
protofile/SocketServer/sources/service.proto
Normal file
@@ -0,0 +1,35 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "git.hlsq.asia/alex/proto/proto/ss/sspb";
|
||||
import "ss_common.proto";
|
||||
|
||||
// MESSAGE_ID_KICK_OUT
|
||||
enum KickOutID {
|
||||
KICK_OUT_ID_INVALID = 0;
|
||||
KICK_OUT_ID_DUPLICATE_LOGIN = 1; // 重复登录
|
||||
KICK_OUT_ID_SERVER_BUSY = 2; // 服务器繁忙
|
||||
KICK_OUT_ID_SERVER_CLOSE = 3; // 服务器关闭
|
||||
KICK_OUT_ID_QUEUE_UP_FULL = 4; // 排队上限
|
||||
KICK_OUT_ID_TOKEN_INVALID = 5; // Token无效
|
||||
}
|
||||
message S2C_KickOut {
|
||||
KickOutID ID = 1;
|
||||
}
|
||||
|
||||
// MESSAGE_ID_QUEUE_UP
|
||||
message S2C_QueueUp {
|
||||
int32 QueueUpCount = 1; // 排队人数
|
||||
}
|
||||
|
||||
// MESSAGE_ID_LOGIN_SUCCESS
|
||||
message S2C_LoginSuccess {
|
||||
int64 GatewayID = 1; // 网关ID
|
||||
}
|
||||
|
||||
// MESSAGE_ID_PING
|
||||
message C2S_Ping {
|
||||
}
|
||||
|
||||
// MESSAGE_ID_PONG
|
||||
message S2C_Pong {
|
||||
}
|
||||
Reference in New Issue
Block a user