feat 协议移动到Public
This commit is contained in:
17
Public/Proto/ServerInternal/sources/service_gateway.proto
Normal file
17
Public/Proto/ServerInternal/sources/service_gateway.proto
Normal file
@@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "common/proto/ss/grpc_pb";
|
||||
import "ss_common.proto";
|
||||
|
||||
service Gateway {
|
||||
rpc ToClient(stream ToClientReq) returns (ToClientResp) {}
|
||||
}
|
||||
|
||||
message ToClientReq {
|
||||
int32 UID = 1;
|
||||
int32 MessageID = 2;
|
||||
bytes Payload = 3;
|
||||
}
|
||||
|
||||
message ToClientResp {
|
||||
}
|
||||
30
Public/Proto/ServerInternal/sources/service_scene.proto
Normal file
30
Public/Proto/ServerInternal/sources/service_scene.proto
Normal file
@@ -0,0 +1,30 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "common/proto/ss/grpc_pb";
|
||||
import "ss_common.proto";
|
||||
|
||||
service Scene {
|
||||
rpc Enter(EnterReq) returns (EnterResp) {}
|
||||
rpc Action(stream ActionReq) returns (ActionResp) {}
|
||||
}
|
||||
|
||||
message EnterReq {
|
||||
int32 UID = 1; // 用户ID
|
||||
int64 GatewaySID = 2; // 网关服务ID
|
||||
int32 InstanceID = 3; // 副本ID
|
||||
}
|
||||
|
||||
message EnterResp {
|
||||
int64 SceneSID = 1; // 场景服务ID
|
||||
int64 UniqueNo = 2; // 副本唯一编号
|
||||
}
|
||||
|
||||
message ActionReq {
|
||||
int64 UniqueNo = 1; // 副本唯一编号
|
||||
int32 UID = 2; // 用户ID
|
||||
int32 Action = 3; // 动作ID
|
||||
bytes Payload = 4; // 动作数据
|
||||
}
|
||||
|
||||
message ActionResp {
|
||||
}
|
||||
3
Public/Proto/ServerInternal/sources/ss_common.proto
Normal file
3
Public/Proto/ServerInternal/sources/ss_common.proto
Normal file
@@ -0,0 +1,3 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "common/proto/ss/ss_common";
|
||||
Reference in New Issue
Block a user