notification
This commit is contained in:
+320
-651
File diff suppressed because it is too large
Load Diff
@@ -1,168 +1,137 @@
|
||||
syntax = "proto3";
|
||||
import "Open_IM/pkg/proto/sdk_ws/ws.proto";
|
||||
option go_package = "./friend;friend";
|
||||
package friend;
|
||||
|
||||
message CommonResp{
|
||||
int32 errorCode = 1;
|
||||
string errorMsg = 2;
|
||||
int32 errCode = 1;
|
||||
string errMsg = 2;
|
||||
}
|
||||
|
||||
message CommID{
|
||||
string OpUserID = 1;
|
||||
string OperationID = 2;
|
||||
string ToUserID = 4;
|
||||
string FromUserID = 5;
|
||||
}
|
||||
|
||||
message GetFriendsInfoReq{
|
||||
string uid = 1;
|
||||
string OperationID = 2;
|
||||
string Token = 3;
|
||||
}
|
||||
message GetFriendInfoResp{
|
||||
int32 errorCode = 1;
|
||||
string errorMsg = 2;
|
||||
GetFriendData Data = 3;
|
||||
CommID CommID = 1;
|
||||
}
|
||||
|
||||
message GetFriendData{
|
||||
string uid = 1;
|
||||
string icon = 2;
|
||||
string name = 3;
|
||||
int32 gender = 4;
|
||||
string mobile = 5;
|
||||
string birth = 6;
|
||||
string email = 7;
|
||||
string ex = 8;
|
||||
string comment = 9;
|
||||
int32 isFriend = 10;
|
||||
int32 isInBlackList = 11;
|
||||
message GetFriendInfoResp{
|
||||
int32 ErrCode = 1;
|
||||
string ErrMsg = 2;
|
||||
FriendInfo Data = 3;
|
||||
}
|
||||
|
||||
message FriendInfo{
|
||||
string OwnerUserID = 1;
|
||||
string Remark = 2;
|
||||
uint64 CreateTime = 3;
|
||||
open_im_sdk.UserInfo FriendUser = 4;
|
||||
int32 IsBlack = 5;
|
||||
}
|
||||
|
||||
|
||||
message AddFriendReq{
|
||||
string uid = 1;
|
||||
string OperationID = 2;
|
||||
string Token = 3;
|
||||
string ReqMessage = 4;
|
||||
CommID CommID = 1;
|
||||
string ReqMessage = 2;
|
||||
}
|
||||
|
||||
|
||||
message ImportFriendReq{
|
||||
repeated string uidList = 1;
|
||||
repeated string FriendUserIDList = 1;
|
||||
string OperationID = 2;
|
||||
string Token = 3;
|
||||
string OwnerUid = 4;
|
||||
string FromUserID = 3;
|
||||
string OpUserID = 4;
|
||||
}
|
||||
|
||||
message ImportFriendResp{
|
||||
CommonResp commonResp = 1;
|
||||
repeated string failedUidList = 2;
|
||||
}
|
||||
|
||||
message GetFriendApplyReq{
|
||||
string OperationID = 1;
|
||||
string Token = 2;
|
||||
CommID CommID = 1;
|
||||
}
|
||||
message GetFriendApplyResp{
|
||||
int32 errorCode = 1;
|
||||
string errorMsg = 2;
|
||||
int32 ErrCode = 1;
|
||||
string ErrMsg = 2;
|
||||
repeated ApplyUserInfo data = 4;
|
||||
}
|
||||
|
||||
message ApplyUserInfo{
|
||||
string uid = 1;
|
||||
string name = 2;
|
||||
string icon = 3;
|
||||
int32 gender = 4;
|
||||
string mobile = 5;
|
||||
string birth = 6;
|
||||
string email = 7;
|
||||
string ex = 8;
|
||||
int32 flag = 9;
|
||||
string applyTime = 10;
|
||||
string reqMessage = 11;
|
||||
open_im_sdk.PublicUserInfo UserInfo = 1;
|
||||
int64 applyTime = 2;
|
||||
string reqMessage = 3;
|
||||
int32 Flag = 4;
|
||||
}
|
||||
|
||||
|
||||
message getFriendListReq{
|
||||
string OperationID = 1;
|
||||
string Token = 2;
|
||||
}
|
||||
message getFriendListResp{
|
||||
int32 errorCode = 1;
|
||||
string errorMsg = 2;
|
||||
repeated UserInfo data = 3;
|
||||
}
|
||||
message UserInfo{
|
||||
string uid = 1;
|
||||
string name = 3;
|
||||
string icon = 2;
|
||||
int32 gender = 4;
|
||||
string mobile = 5;
|
||||
string birth = 6;
|
||||
string email = 7;
|
||||
string ex = 8;
|
||||
string comment = 9;
|
||||
int32 isInBlackList = 10;
|
||||
CommID CommID = 1;
|
||||
}
|
||||
|
||||
message getFriendListResp{
|
||||
int32 ErrCode = 1;
|
||||
string ErrMsg = 2;
|
||||
repeated FriendInfo Data = 3;
|
||||
}
|
||||
|
||||
|
||||
message AddBlacklistReq{
|
||||
string uid = 1;
|
||||
string OperationID = 2;
|
||||
string Token = 3;
|
||||
string OwnerUid = 4;
|
||||
CommID CommID = 1;
|
||||
}
|
||||
|
||||
|
||||
message RemoveBlacklistReq{
|
||||
string uid = 1;
|
||||
string OperationID = 2;
|
||||
string Token = 3;
|
||||
CommID CommID = 1;
|
||||
}
|
||||
|
||||
|
||||
message GetBlacklistReq{
|
||||
string OperationID = 1;
|
||||
string token = 2;
|
||||
CommID CommID = 1;
|
||||
}
|
||||
|
||||
message GetBlacklistResp{
|
||||
int32 errorCode = 1;
|
||||
string errorMsg = 2;
|
||||
repeated UserInfo data = 3;
|
||||
int32 ErrCode = 1;
|
||||
string ErrMsg = 2;
|
||||
repeated open_im_sdk.PublicUserInfo data = 3;
|
||||
}
|
||||
|
||||
message IsFriendReq{
|
||||
string token = 1;
|
||||
string receiveUid = 2;
|
||||
string OperationID = 3;
|
||||
CommID CommID = 1;
|
||||
}
|
||||
|
||||
message IsFriendResp{
|
||||
int32 errorCode = 1;
|
||||
string errorMsg = 2;
|
||||
int32 shipType = 3;
|
||||
int32 ErrCode = 1;
|
||||
string ErrMsg = 2;
|
||||
int32 ShipType = 3;
|
||||
}
|
||||
|
||||
message IsInBlackListReq{
|
||||
string sendUid = 1;
|
||||
string receiveUid = 2;
|
||||
string OperationID = 3;
|
||||
CommID CommID = 1;
|
||||
}
|
||||
|
||||
message IsInBlackListResp{
|
||||
int32 errorCode = 1;
|
||||
string errorMsg = 2;
|
||||
bool response = 3;
|
||||
int32 ErrCode = 1;
|
||||
string ErrMsg = 2;
|
||||
bool Response = 3;
|
||||
}
|
||||
|
||||
message DeleteFriendReq{
|
||||
string uid = 1;
|
||||
string OperationID = 2;
|
||||
string Token = 3;
|
||||
CommID CommID = 1;
|
||||
}
|
||||
|
||||
|
||||
message AddFriendResponseReq{
|
||||
string uid = 1;
|
||||
CommID CommID = 1;
|
||||
int32 flag = 2;
|
||||
string OperationID = 3;
|
||||
string Token = 4;
|
||||
}
|
||||
|
||||
message SetFriendCommentReq{
|
||||
string uid = 1;
|
||||
string operationID = 2;
|
||||
string comment = 3;
|
||||
string token = 4;
|
||||
CommID CommID = 1;
|
||||
string Remark = 2;
|
||||
}
|
||||
|
||||
service friend{
|
||||
|
||||
Reference in New Issue
Block a user