87 lines
1.9 KiB
Protocol Buffer
87 lines
1.9 KiB
Protocol Buffer
syntax = "proto3";
|
||
package Fantasy.Network.Message;
|
||
|
||
///请求邮件列表
|
||
message C2Game_GetMailsRequest // ICustomRouteRequest,Game2C_GetMailsResponse,GameRoute
|
||
{
|
||
|
||
}
|
||
///获取邮件列表响应
|
||
message Game2C_GetMailsResponse // ICustomRouteResponse
|
||
{
|
||
repeated MailInfo Mail = 1;
|
||
}
|
||
|
||
///新邮件推送
|
||
message Game2C_HaveMail // ICustomRouteMessage,GameRoute
|
||
{
|
||
MailInfo Mail = 1;
|
||
}
|
||
|
||
message Game2C_MailState // ICustomRouteMessage,GameRoute
|
||
{
|
||
int32 MailState = 1;
|
||
int64 MailId = 2;
|
||
}
|
||
|
||
|
||
////////////// ******** 聊天 *******/////////////
|
||
|
||
///创建频道
|
||
message C2Chat_CreateChannelRequest // ICustomRouteRequest,Caht2C_CreateChannelResponse,ChatRoute
|
||
{
|
||
string Name = 1; //频道名称
|
||
}
|
||
|
||
///创建频道响应
|
||
message Caht2C_CreateChannelResponse // ICustomRouteResponse
|
||
{
|
||
int64 ChannelId = 1; //创建的频道id
|
||
}
|
||
|
||
///请求进入频道
|
||
message C2Chat_JoinChannelRequest // ICustomRouteRequest,Caht2C_JoinChannelResponse,ChatRoute
|
||
{
|
||
int64 Target = 1; // 频道id
|
||
}
|
||
|
||
///进入频道响应
|
||
message Caht2C_JoinChannelResponse // ICustomRouteResponse
|
||
{
|
||
|
||
}
|
||
|
||
///发送聊天
|
||
message C2Chat_SendMessageRequest // ICustomRouteRequest,Caht2C_SendMessageResponse,ChatRoute
|
||
{
|
||
int32 Type = 1; //消息类型 0.频道聊天 1.私聊
|
||
string Message = 2;
|
||
int64 Target = 3; //目标id,频道id或者好友id
|
||
}
|
||
|
||
///发送聊天响应
|
||
message Caht2C_SendMessageResponse // ICustomRouteResponse
|
||
{
|
||
|
||
}
|
||
|
||
///推送消息
|
||
message Chat2C_Message // ICustomRouteMessage,ChatRoute
|
||
{
|
||
ChatMessageInfo Message = 1;
|
||
}
|
||
|
||
|
||
///获取聊天记录请求
|
||
message C2Chat_GetChatRecordRequest // ICustomRouteRequest,Caht2C_GetChatRecordResponse,ChatRoute
|
||
{
|
||
int64 Target = 1; // 好友id或频道id
|
||
int32 Type = 2; // 获取聊天记录类型 0.频道 1.好友
|
||
}
|
||
|
||
///获取聊天记录响应
|
||
message Caht2C_GetChatRecordResponse // ICustomRouteResponse
|
||
{
|
||
repeated ChatMessageInfo Messages = 1; //聊天记录
|
||
}
|