diff --git a/server/tools/protobuild/cs_msgid.proto b/server/tools/protobuild/cs_msgid.proto index 89a7a96..0f136b2 100644 --- a/server/tools/protobuild/cs_msgid.proto +++ b/server/tools/protobuild/cs_msgid.proto @@ -29,6 +29,7 @@ enum CMMessageId_e _CMGetUserGuild = 156; _CMReadMsgAndOpenChatNotify = 157; _CMCloseChatNotify = 158; + _CMSetCurrPrivateChatTarget = 159; _CMGuildMsgBegin = 230; _CMGuildCreate = 231; @@ -124,4 +125,5 @@ enum SMMessageId_e _SMDeleteBlackListNotify = 510; _SMUpdateChatRedPointNotify = 511; _SMUpdateChatChannelLastId = 512; + _SMUpdatePrivateChatRedPointNotify = 513; } diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index c17beb7..2a574f8 100644 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -673,7 +673,7 @@ message SMGuildGainExp //发送聊天消息 message CMSendChatMsg { - optional int32 chat_channel = 1; //聊天频道 0: 世界 1:好友 2:战队 + optional int32 chat_channel = 1; //聊天频道 1: 世界 2:好友 3:战队 optional string target = 2; //目标 optional int32 msg_type = 3; //消息类型 0:文本消息 optional string msg_body = 4; //消息内容 @@ -686,6 +686,13 @@ message CMReadMsgAndOpenChatNotify repeated MFPairInt64 last_ids = 2; //所有频道 key:聊天频道 val:该频道最后一次收到的消息id } +//设置当前私聊目标 +message CMSetCurrPrivateChatTarget +{ + optional string private_target = 1; //私聊对象id, 只有当前聊频道是私聊时字段才有意义 + optional int64 last_id = 2; //最后收到想消息id +} + //关闭聊天通知 message CMCloseChatNotify { @@ -811,7 +818,13 @@ message SMUpdateRedPointNotify //更新聊天红点信息 message SMUpdateChatRedPointNotify { - repeated MFPairInt32 unread_msg_cnt = 1; //所有频道 key:聊天频道 val:未读消息数量 + repeated int32 has_unread_msg_channels = 1; //含有未读消息的渠道id列表,不在列表里的渠道默认不含有 +} + +//更新私聊红点信息 +message SMUpdatePrivateChatRedPointNotify +{ + repeated string has_unread_msg_accounts = 1; //有未读消息的账号列表,不在列表里的好友more不含有 } //更新频道最后一次收到的消息id