syntax = "proto3"; import "Open-IM-Server/pkg/proto/sdk_ws/ws.proto"; option go_package = "Open_IM/pkg/proto/friend;friend"; package friend; message CommID{ string OpUserID = 1; string OperationID = 2; string ToUserID = 4; string FromUserID = 5; } message GetFriendsInfoReq{ CommID CommID = 1; } message GetFriendInfoResp{ server_api_params.CommonResp commonResp = 1; repeated server_api_params.FriendInfo FriendInfoList = 2; } message AddFriendReq{ CommID CommID = 1; string ReqMsg = 2; } message AddFriendResp{ server_api_params.CommonResp commonResp = 1; } message ImportFriendReq{ repeated string FriendUserIDList = 1; string OperationID = 2; string FromUserID = 3; string OpUserID = 4; } message UserIDResult{ string UserID = 1; int32 Result = 2; } message ImportFriendResp{ server_api_params.CommonResp commonResp = 1; repeated UserIDResult UserIDResultList = 2; } message GetFriendApplyListReq{ CommID CommID = 1; } message GetFriendApplyListResp{ server_api_params.CommonResp commonResp = 1; repeated server_api_params.FriendRequest FriendRequestList = 2; } message GetFriendListReq{ CommID CommID = 1; } message GetFriendListResp{ server_api_params.CommonResp commonResp = 1; repeated server_api_params.FriendInfo FriendInfoList = 2; } message AddBlacklistReq{ CommID CommID = 1; } message AddBlacklistResp{ server_api_params.CommonResp commonResp = 1; } message RemoveBlacklistReq{ CommID CommID = 1; } message RemoveBlacklistResp{ server_api_params.CommonResp commonResp = 1; } message GetBlacklistReq{ CommID CommID = 1; } message GetBlacklistResp{ server_api_params.CommonResp commonResp = 1; repeated server_api_params.PublicUserInfo BlackUserInfoList = 2; } message IsFriendReq{ CommID CommID = 1; } message IsFriendResp{ server_api_params.CommonResp commonResp = 1; bool Response = 2; } message IsInBlackListReq{ CommID CommID = 1; } message IsInBlackListResp{ server_api_params.CommonResp commonResp = 1; bool Response = 2; } message DeleteFriendReq{ CommID CommID = 1; } message DeleteFriendResp{ server_api_params.CommonResp commonResp = 1; } //process message AddFriendResponseReq{ CommID CommID = 1; int32 handleResult = 2; string handleMsg = 3; } message AddFriendResponseResp{ server_api_params.CommonResp commonResp = 1; } message SetFriendRemarkReq{ CommID CommID = 1; string Remark = 2; } message SetFriendRemarkResp{ server_api_params.CommonResp commonResp = 1; } message GetSelfApplyListReq{ CommID CommID = 1; } message GetSelfApplyListResp{ server_api_params.CommonResp commonResp = 1; repeated server_api_params.FriendRequest FriendRequestList = 2; } service friend{ // rpc getFriendsInfo(GetFriendsInfoReq) returns(GetFriendInfoResp); 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); rpc isFriend(IsFriendReq) returns(IsFriendResp); rpc isInBlackList(IsInBlackListReq) returns(IsInBlackListResp); rpc getBlacklist(GetBlacklistReq) returns(GetBlacklistResp); rpc deleteFriend(DeleteFriendReq) returns(DeleteFriendResp); rpc addFriendResponse(AddFriendResponseReq) returns(AddFriendResponseResp); rpc setFriendRemark(SetFriendRemarkReq) returns(SetFriendRemarkResp); rpc importFriend(ImportFriendReq) returns(ImportFriendResp); // rpc CheckFriendFromCache(IsFriendReq) returns(IsFriendResp); // rpc CheckBlockFromCache(IsInBlackListReq) returns(IsFriendResp); }