feat 初始化
This commit is contained in:
21
protofile/SocketServer/sources/define.proto
Normal file
21
protofile/SocketServer/sources/define.proto
Normal file
@@ -0,0 +1,21 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "git.hlsq.asia/alex/proto/proto/ss/sspb";
|
||||
option csharp_namespace = "common_pb";
|
||||
import "ss_common.proto";
|
||||
|
||||
enum MessageID {
|
||||
MESSAGE_ID_INVALID = 0;
|
||||
MESSAGE_ID_KICK_OUT = 1; // 服务器踢人
|
||||
MESSAGE_ID_QUEUE_UP = 2; // 排队中
|
||||
MESSAGE_ID_LOGIN_SUCCESS = 3; // 登录成功
|
||||
MESSAGE_ID_PING = 4; // Ping
|
||||
MESSAGE_ID_PONG = 5; // Pong
|
||||
MESSAGE_ID_JOIN_CHANNEL = 101; // 加入频道
|
||||
MESSAGE_ID_LEAVE_CHANNEL = 102; // 离开频道
|
||||
}
|
||||
|
||||
message Message {
|
||||
MessageID ID = 1;
|
||||
bytes Payload = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user