You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/proto/friend/friend.proto

146 lines
3.0 KiB

syntax = "proto3";
2 years ago
import "Open-IM-Server/pkg/proto/sdk_ws/ws.proto";
2 years ago
option go_package = "Open_IM/pkg/proto/friend;friend";
package friend;
3 years ago
message GetFriendsInfoReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
3 years ago
}
3 years ago
message GetFriendInfoResp{
2 years ago
repeated server_api_params.FriendInfo FriendInfoList = 1;
}
3 years ago
message AddFriendReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
string ReqMsg = 3;
3 years ago
}
message AddFriendResp{
server_api_params.CommonResp commonResp = 1;
}
3 years ago
message ImportFriendReq{
3 years ago
repeated string FriendUserIDList = 1;
2 years ago
string FromUserID = 2;
3 years ago
}
2 years ago
message ImportFriendResp{
}
3 years ago
message GetFriendApplyListReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
}
3 years ago
message GetFriendApplyListResp{
2 years ago
repeated server_api_params.FriendRequest FriendRequestList = 1;
}
3 years ago
message GetFriendListReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
}
3 years ago
message GetFriendListResp{
2 years ago
repeated server_api_params.FriendInfo FriendInfoList = 1;
}
3 years ago
message AddBlacklistReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
}
3 years ago
message AddBlacklistResp{
2 years ago
3 years ago
}
message RemoveBlacklistReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
}
3 years ago
message RemoveBlacklistResp{
2 years ago
3 years ago
}
message GetBlacklistReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
}
message GetBlacklistResp{
2 years ago
repeated server_api_params.PublicUserInfo BlackUserInfoList = 1;
}
3 years ago
3 years ago
message IsFriendReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
3 years ago
}
message IsFriendResp{
2 years ago
bool Response = 1;
3 years ago
}
3 years ago
3 years ago
message IsInBlackListReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
}
message IsInBlackListResp{
2 years ago
bool Response = 1;
}
3 years ago
message DeleteFriendReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
}
3 years ago
message DeleteFriendResp{
2 years ago
3 years ago
}
3 years ago
//process
3 years ago
message AddFriendResponseReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
int32 handleResult = 3;
string handleMsg = 4;
3 years ago
}
message AddFriendResponseResp{
2 years ago
}
3 years ago
message SetFriendRemarkReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
string Remark = 3;
}
3 years ago
message SetFriendRemarkResp{
2 years ago
3 years ago
}
message GetSelfApplyListReq{
2 years ago
string ToUserID = 1;
string FromUserID = 2;
3 years ago
}
message GetSelfApplyListResp{
2 years ago
repeated server_api_params.FriendRequest FriendRequestList = 1;
3 years ago
}
service friend{
3 years ago
rpc addFriend(AddFriendReq) returns(AddFriendResp);
rpc getFriendApplyList(GetFriendApplyListReq) returns(GetFriendApplyListResp);
rpc getSelfApplyList(GetSelfApplyListReq) returns(GetSelfApplyListResp);
rpc getFriendList(GetFriendListReq) returns(GetFriendListResp);
rpc addBlacklist(AddBlacklistReq) returns(AddBlacklistResp);
rpc removeBlacklist(RemoveBlacklistReq) returns(RemoveBlacklistResp);
3 years ago
rpc isFriend(IsFriendReq) returns(IsFriendResp);
rpc isInBlackList(IsInBlackListReq) returns(IsInBlackListResp);
rpc getBlacklist(GetBlacklistReq) returns(GetBlacklistResp);
3 years ago
rpc deleteFriend(DeleteFriendReq) returns(DeleteFriendResp);
rpc addFriendResponse(AddFriendResponseReq) returns(AddFriendResponseResp);
3 years ago
rpc setFriendRemark(SetFriendRemarkReq) returns(SetFriendRemarkResp);
3 years ago
rpc importFriend(ImportFriendReq) returns(ImportFriendResp);
}