43 lines
905 B
Protocol Buffer
43 lines
905 B
Protocol Buffer
syntax = "proto3";
|
|
package Sining.Message;
|
|
/// Gate登录到Chat服务器
|
|
message G2Chat_LoginRequest // IRouteRequest,Chat2G_LoginResponse
|
|
{
|
|
string UserName = 1;
|
|
long UnitId = 2;
|
|
long GateRouteId = 3;
|
|
}
|
|
message Chat2G_LoginResponse // IRouteResponse
|
|
{
|
|
int64 ChatRouteId = 1;
|
|
}
|
|
/// Gate通知Chat服务器下线
|
|
message G2Chat_OfflineRequest // IRouteRequest,Chat2G_OfflineResponse
|
|
{
|
|
|
|
}
|
|
message Chat2G_OfflineResponse // IRouteResponse
|
|
{
|
|
|
|
}
|
|
/// Chat通知Gate发送一个全服广播的聊天信息
|
|
message Chat2G_ChatMessage // IRouteMessage
|
|
{
|
|
ChatInfoTree ChatInfoTree = 1;
|
|
}
|
|
/// 其他服务器发送聊天消息到Chat
|
|
message Other2Chat_ChatMessage // IRouteMessage
|
|
{
|
|
ChatInfoTree ChatInfoTree = 1;
|
|
}
|
|
/// Gate登录到Map服务器
|
|
message G2M_LoginRequest // IRouteRequest,M2G_LoginResponse
|
|
{
|
|
long ChatUnitRouteId = 1;
|
|
}
|
|
message M2G_LoginResponse // IRouteResponse
|
|
{
|
|
int64 MapRouteId = 1;
|
|
}
|
|
|