添加黑名单协议

This commit is contained in:
aozhiwei 2020-06-30 13:46:54 +08:00
parent bb4120b289
commit 6ffc465f0b
2 changed files with 56 additions and 13 deletions

View File

@ -12,11 +12,12 @@ enum CMMessageId_e
_CMFriendDelete = 108;
_CMFriendApply = 109;
_CMFriendApplyList = 110;
_CMFriendBlackList = 111;
_CMFriendAddBlack = 112;
_CMFriendDeleteBlack = 113;
_CMFriendRefuse = 114;
_CMFriendList = 115;
_CMQueryUserStatus = 116;
_CMRecommandFriend = 117;
_CMSendChatMsg = 151;
_CMSendCustomMsg = 152;
@ -44,11 +45,12 @@ enum SMMessageId_e
_SMFriendDelete = 108;
_SMFriendApply = 109;
_SMFriendApplyList = 110;
_SMFriendBlackList = 111;
_SMFriendAddBlack = 112;
_SMFriendDeleteBlack = 113;
_SMFriendRefuse = 114;
_SMFriendList = 115;
_SMQueryUserStatus = 116;
_SMRecommandFriend = 117;
_SMGroupCreate = 201;
_SMGroupJoin = 202;
@ -65,4 +67,7 @@ enum SMMessageId_e
_SMDeleteFriendNotify = 505;
_SMUpdateAccountInfo = 506;
_SMUpdateRedPointNotify = 507;
_SMShowErrorMsg = 508;
_SMAddBlackListNotify = 509;
_SMDeleteBlackListNotify = 510;
}

View File

@ -61,6 +61,13 @@ message MFUserInfo
optional MFUserTempCustomData temp_custom_data = 2; //
}
//
message MFUserStatus
{
optional string account_id = 1; //id
optional int32 _online = 2; //线
}
//
message MFFriendApply
{
@ -112,6 +119,7 @@ message SMFriendList
optional int32 errcode = 1; //
optional string errmsg = 2; //
repeated MFUserInfo friend_list = 3; //
repeated MFUserInfo black_list = 4; //
}
//
@ -178,20 +186,10 @@ message SMFriendDelete
optional string friend_id = 3; //id
}
//
message CMFriendBlackList
{
}
//
message SMFriendBlackList
{
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
message CMFriendAddBlack
{
optional string account_id = 1; //id
}
//
message SMFriendAddBlack
@ -203,6 +201,7 @@ message SMFriendAddBlack
//
message CMFriendDeleteBlack
{
optional string account_id = 1; //id
}
//
message SMFriendDeleteBlack
@ -327,6 +326,27 @@ message CMUpdateTempCustomData
optional int32 delay_flag = 101; //(1-16)flag定时器覆盖
}
//
message CMQueryUserStatus
{
repeated string user_list = 1; //
}
//
message SMQueryUserStatus
{
repeated MFUserStatus status_list = 1; //
}
//
message CMRecommandFriend
{
}
//
message SMRecommandFriend
{
repeated MFUserInfo friend_list = 1; //
}
///线
message SMUserStatusNotify
{
@ -364,6 +384,18 @@ message SMDeleteFriendNotify
repeated string user_list = 1; //
}
//
message SMAddBlackListNotify
{
repeated MFUserInfo user_infos = 1; //
}
//
message SMDeleteBlackListNotify
{
repeated string user_list = 1; //
}
//
message SMUserTempCustomDataUpdate
{
@ -382,3 +414,9 @@ message SMUpdateRedPointNotify
{
optional int32 red_point_flags = 1; // 1<<0:
}
//
message SMShowErrorMsg
{
optional string msg = 1; //
}