新增私聊相关
This commit is contained in:
4
Config/NetworkProtocol/Outer/MapMessage.proto
Normal file
4
Config/NetworkProtocol/Outer/MapMessage.proto
Normal file
@@ -0,0 +1,4 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
|
||||
@@ -1,32 +1,80 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
////////////// ******** 邮件 *******/////////////
|
||||
////////////// ******** 私聊/邮件 *******/////////////
|
||||
|
||||
///请求邮件列表
|
||||
message C2Game_GetMailsRequest // ICustomRouteRequest,Game2C_GetMailsResponse,GameRoute
|
||||
/// 会话信息
|
||||
message ConversationInfo
|
||||
{
|
||||
RoleSimpleInfo RoleInfo = 1; //对方信息
|
||||
repeated MailInfo List = 2;//对话列表
|
||||
}
|
||||
|
||||
message MailInfo
|
||||
{
|
||||
int64 Id = 1; //邮件id
|
||||
int64 Sender = 2; //发送者
|
||||
string Content = 3; //内容
|
||||
int64 CreateTime = 4; //发送时间
|
||||
int32 MailType = 5; //邮件类型
|
||||
int32 MailState = 6; //邮件状态
|
||||
repeated AwardInfo Items = 7; //附件列表
|
||||
}
|
||||
|
||||
|
||||
///请求会话列表
|
||||
message C2S_GetConversationsRequest // ICustomRouteRequest,S2C_GetConversationsResponse,SocialRoute
|
||||
{
|
||||
|
||||
}
|
||||
///获取邮件列表响应
|
||||
message Game2C_GetMailsResponse // ICustomRouteResponse
|
||||
|
||||
///请求会话列表响应
|
||||
message S2C_GetConversationsResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated MailInfo Mail = 1;
|
||||
repeated ConversationInfo List = 1;
|
||||
}
|
||||
|
||||
///发送邮件消息
|
||||
message C2S_SendMailRequest // ICustomRouteRequest,S2C_SendMailResponse,SocialRoute
|
||||
{
|
||||
int64 Target = 1; //目标id
|
||||
string Content = 2; //内容
|
||||
repeated AwardInfo Items = 3; //附件列表
|
||||
}
|
||||
|
||||
///发送邮件消息响应
|
||||
message S2C_SendMailResponse // ICustomRouteResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///发送删除会话消息
|
||||
message C2S_DeleteMailRequest // ICustomRouteRequest,S2C_DeleteMailResponse,SocialRoute
|
||||
{
|
||||
int64 Id = 1; //会话id
|
||||
}
|
||||
|
||||
///发送删除会话消息响应
|
||||
message S2C_DeleteMailResponse // ICustomRouteResponse
|
||||
{
|
||||
int64 Id = 1; //会话id
|
||||
}
|
||||
|
||||
|
||||
///新邮件推送
|
||||
message Game2C_HaveMail // ICustomRouteMessage,GameRoute
|
||||
message S2C_HaveMail // ICustomRouteMessage,SocialRoute
|
||||
{
|
||||
MailInfo Mail = 1;
|
||||
string Key = 2;
|
||||
}
|
||||
|
||||
message Game2C_MailState // ICustomRouteMessage,GameRoute
|
||||
message S2C_MailState // ICustomRouteMessage,SocialRoute
|
||||
{
|
||||
int32 MailState = 1;
|
||||
int64 MailId = 2;
|
||||
}
|
||||
|
||||
////////////// ******** 聊天 *******/////////////
|
||||
////////////// ******** 频道聊天 *******/////////////
|
||||
message ChatUserInfo
|
||||
{
|
||||
int64 Id = 1;//用户id
|
||||
@@ -66,34 +114,19 @@ message S2C_JoinChannelResponse // ICustomRouteResponse
|
||||
|
||||
}
|
||||
|
||||
///发送聊天
|
||||
///发送消息
|
||||
message C2S_SendMessageRequest // ICustomRouteRequest,S2C_SendMessageResponse,SocialRoute
|
||||
{
|
||||
int32 Type = 1; //消息类型 0.频道聊天 1.私聊
|
||||
string Message = 2;
|
||||
int64 Target = 3; //目标id,频道id或者好友id
|
||||
string Message = 1;
|
||||
int64 Target = 2; //目标id
|
||||
}
|
||||
|
||||
///发送聊天响应
|
||||
///发送消息响应
|
||||
message S2C_SendMessageResponse // ICustomRouteResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///发送聊天
|
||||
message C2S_GetOfflineMessageRequest // ICustomRouteRequest,S2C_GetOfflineMessageResponse,SocialRoute
|
||||
{
|
||||
int32 Type = 1; //消息类型 0.频道聊天 1.私聊
|
||||
string Message = 2;
|
||||
int64 Target = 3; //目标id,频道id或者好友id
|
||||
}
|
||||
|
||||
///发送聊天响应
|
||||
message S2C_GetOfflineMessageResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated ChatMessageInfo Message = 1;
|
||||
}
|
||||
|
||||
///推送消息
|
||||
message S2C_Message // ICustomRouteMessage,SocialRoute
|
||||
{
|
||||
@@ -101,20 +134,6 @@ message S2C_Message // ICustomRouteMessage,SocialRoute
|
||||
}
|
||||
|
||||
|
||||
///获取聊天记录请求
|
||||
message C2S_GetChatRecordRequest // ICustomRouteRequest,S2C_GetChatRecordResponse,SocialRoute
|
||||
{
|
||||
int64 Target = 1; // 好友id或频道id
|
||||
int32 Type = 2; // 获取聊天记录类型 0.频道 1.好友
|
||||
}
|
||||
|
||||
///获取聊天记录响应
|
||||
message S2C_GetChatRecordResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated ChatMessageInfo Messages = 1; //聊天记录
|
||||
}
|
||||
|
||||
|
||||
////////////// ******** 工会 *******/////////////
|
||||
|
||||
message ClubInfo
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
message MailInfo
|
||||
{
|
||||
int64 Id = 1; //邮件id
|
||||
string Title = 2; //标题
|
||||
string Content = 3; //内容
|
||||
int64 CreateTime = 4; //发送时间
|
||||
int64 ExpireTime = 4; //发送时间
|
||||
int32 MailType = 5; //邮件类型
|
||||
int32 MailState = 6; //邮件状态
|
||||
repeated AwardInfo Items = 7; //附件列表
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
|
||||
GateRoute = 1001 // Gate
|
||||
SocialRoute = 1002 // Social
|
||||
GameRoute = 1003 // Game
|
||||
GameRoute = 1003 // Game
|
||||
MapRoute = 1004 // Map
|
||||
Reference in New Issue
Block a user