添加黑名单协议
This commit is contained in:
parent
bb4120b289
commit
6ffc465f0b
@ -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;
|
||||
}
|
||||
|
@ -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; //飘字内容
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user