mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
conversation update
This commit is contained in:
parent
f779ed7628
commit
e682b408f3
@ -6,297 +6,33 @@ message CommonResp{
|
|||||||
int32 errCode = 1;
|
int32 errCode = 1;
|
||||||
string errMsg = 2;
|
string errMsg = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeleteUsersReq{
|
|
||||||
repeated string DeleteUserIDList = 2;
|
|
||||||
string OpUserID = 3;
|
|
||||||
string OperationID = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
message DeleteUsersResp{
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
repeated string FailedUserIDList = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
message GetAllUserIDReq{
|
|
||||||
string opUserID = 1;
|
|
||||||
string operationID = 2;
|
|
||||||
}
|
|
||||||
message GetAllUserIDResp{
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
repeated string UserIDList = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
message AccountCheckReq{
|
|
||||||
repeated string CheckUserIDList = 1;
|
|
||||||
string OpUserID = 2;
|
|
||||||
string OperationID = 3;
|
|
||||||
|
|
||||||
}
|
|
||||||
message AccountCheckResp{
|
|
||||||
CommonResp commonResp = 1;
|
|
||||||
message SingleUserStatus {
|
|
||||||
string userID = 1;
|
|
||||||
string accountStatus = 2;
|
|
||||||
}
|
|
||||||
repeated SingleUserStatus ResultList = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
message GetUserInfoReq{
|
|
||||||
repeated string userIDList = 1;
|
|
||||||
string OpUserID = 2;
|
|
||||||
string OperationID = 3;
|
|
||||||
}
|
|
||||||
message GetUserInfoResp{
|
|
||||||
CommonResp commonResp = 1;
|
|
||||||
repeated server_api_params.UserInfo UserInfoList = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
message UpdateUserInfoReq{
|
|
||||||
server_api_params.UserInfo UserInfo = 1;
|
|
||||||
string OpUserID = 2;
|
|
||||||
string operationID = 3;
|
|
||||||
}
|
|
||||||
message UpdateUserInfoResp{
|
|
||||||
CommonResp commonResp = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message Conversation{
|
message Conversation{
|
||||||
string OwnerUserID = 1;
|
string ownerUserID = 1;
|
||||||
string ConversationID = 2;
|
string conversationID = 2;
|
||||||
int32 RecvMsgOpt = 3;
|
int32 recvMsgOpt = 3;
|
||||||
int32 ConversationType = 4;
|
int32 conversationType = 4;
|
||||||
string UserID = 5;
|
string userID = 5;
|
||||||
string GroupID = 6;
|
string groupID = 6;
|
||||||
int32 UnreadCount = 7;
|
int32 unreadCount = 7;
|
||||||
int64 DraftTextTime = 8;
|
int64 draftTextTime = 8;
|
||||||
bool IsPinned = 9;
|
bool isPinned = 9;
|
||||||
string AttachedInfo = 10;
|
string attachedInfo = 10;
|
||||||
bool IsPrivateChat = 11;
|
bool isPrivateChat = 11;
|
||||||
int32 GroupAtType = 12;
|
int32 groupAtType = 12;
|
||||||
bool IsNotInGroup = 13;
|
bool isNotInGroup = 13;
|
||||||
string Ex = 14;
|
string ex = 14;
|
||||||
|
}
|
||||||
|
message ModifyConversationFieldReq{
|
||||||
|
Conversation conversation = 1;
|
||||||
|
int32 fieldType = 2;
|
||||||
|
repeated string userIDList = 3;
|
||||||
|
string operationID = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ModifyConversationFiledReq{
|
message ModifyConversationFieldResp{
|
||||||
Conversation Conversation = 1;
|
|
||||||
int32 notificationType = 2;
|
|
||||||
string OperationID = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message SetConversationResp{
|
|
||||||
CommonResp commonResp = 1;
|
CommonResp commonResp = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SetRecvMsgOptReq {
|
|
||||||
string OwnerUserID = 1;
|
|
||||||
string ConversationID = 2;
|
|
||||||
int32 RecvMsgOpt = 3;
|
|
||||||
int32 notificationType = 4;
|
|
||||||
string OperationID = 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
message SetRecvMsgOptResp {
|
|
||||||
CommonResp commonResp = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetConversationReq{
|
|
||||||
string ConversationID = 1;
|
|
||||||
string OwnerUserID = 2;
|
|
||||||
string OperationID = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetConversationResp{
|
|
||||||
CommonResp commonResp = 1;
|
|
||||||
Conversation Conversation = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetConversationsReq{
|
|
||||||
string OwnerUserID = 1;
|
|
||||||
repeated string ConversationIDs = 2;
|
|
||||||
string OperationID = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetConversationsResp{
|
|
||||||
CommonResp commonResp = 1;
|
|
||||||
repeated Conversation Conversations = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetAllConversationsReq{
|
|
||||||
string OwnerUserID = 1;
|
|
||||||
string OperationID = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetAllConversationsResp{
|
|
||||||
CommonResp commonResp = 1;
|
|
||||||
repeated Conversation Conversations = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message BatchSetConversationsReq{
|
|
||||||
repeated Conversation Conversations = 1;
|
|
||||||
string OwnerUserID = 2;
|
|
||||||
int32 notificationType = 3;
|
|
||||||
string OperationID = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
message BatchSetConversationsResp{
|
|
||||||
CommonResp commonResp = 1;
|
|
||||||
repeated string Success = 2;
|
|
||||||
repeated string Failed = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message ResignUserReq{
|
|
||||||
string UserId = 1;
|
|
||||||
string OperationID = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message ResignUserResp{
|
|
||||||
CommonResp commonResp = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetUserByIdReq{
|
|
||||||
string UserId = 1;
|
|
||||||
string OperationID = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message User{
|
|
||||||
string ProfilePhoto = 1;
|
|
||||||
string Nickname = 2;
|
|
||||||
string UserId = 3;
|
|
||||||
string CreateTime = 4;
|
|
||||||
bool IsBlock = 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetUserByIdResp{
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
User user = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetUsersByNameReq {
|
|
||||||
string UserName = 1;
|
|
||||||
server_api_params.RequestPagination Pagination = 2;
|
|
||||||
string OperationID = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetUsersByNameResp {
|
|
||||||
repeated User users = 1;
|
|
||||||
server_api_params.ResponsePagination Pagination = 2;
|
|
||||||
int32 UserNums = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message AlterUserReq{
|
|
||||||
string UserId = 1;
|
|
||||||
string OperationID = 2;
|
|
||||||
int64 PhoneNumber = 3;
|
|
||||||
string Nickname = 4;
|
|
||||||
string Email = 5;
|
|
||||||
string OpUserId = 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
message AlterUserResp{
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetUsersReq {
|
|
||||||
string OperationID = 1;
|
|
||||||
server_api_params.RequestPagination Pagination = 2;
|
|
||||||
string UserName = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetUsersResp{
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
repeated User user = 2;
|
|
||||||
server_api_params.ResponsePagination Pagination = 3;
|
|
||||||
int32 UserNums = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
message AddUserReq{
|
|
||||||
string OperationID = 1;
|
|
||||||
string PhoneNumber = 2;
|
|
||||||
string UserId = 3;
|
|
||||||
string name = 4;
|
|
||||||
string OpUserId = 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
message AddUserResp{
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
message BlockUserReq{
|
|
||||||
string UserId = 1;
|
|
||||||
string EndDisableTime = 2;
|
|
||||||
string OperationID = 3;
|
|
||||||
string OpUserId = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
message BlockUserResp{
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message UnBlockUserReq{
|
|
||||||
string UserId = 1;
|
|
||||||
string OperationID = 2;
|
|
||||||
string OpUserId = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message UnBlockUserResp{
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetBlockUsersReq{
|
|
||||||
server_api_params.RequestPagination Pagination = 1;
|
|
||||||
string OperationID = 2;
|
|
||||||
int32 BlockUserNum = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message BlockUser {
|
|
||||||
User User = 1;
|
|
||||||
string BeginDisableTime = 2;
|
|
||||||
string EndDisableTime = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetBlockUsersResp{
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
repeated BlockUser BlockUsers = 2;
|
|
||||||
server_api_params.ResponsePagination Pagination = 3;
|
|
||||||
int32 UserNums = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetBlockUserByIdReq {
|
|
||||||
string User_id = 1;
|
|
||||||
string OperationID = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetBlockUserByIdResp {
|
|
||||||
BlockUser BlockUser = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message DeleteUserReq {
|
|
||||||
string User_id = 1;
|
|
||||||
string OperationID = 2;
|
|
||||||
string OpUserId = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message DeleteUserResp {
|
|
||||||
CommonResp CommonResp = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
service user {
|
service user {
|
||||||
rpc AccountCheck(AccountCheckReq)returns(AccountCheckResp);
|
rpc ModifyConversationField(ModifyConversationFieldReq)returns(ModifyConversationFieldResp);
|
||||||
rpc GetConversation(GetConversationReq)returns(GetConversationResp);
|
|
||||||
rpc GetAllConversations(GetAllConversationsReq)returns(GetAllConversationsResp);
|
|
||||||
rpc GetConversations(GetConversationsReq)returns(GetConversationsResp);
|
|
||||||
rpc BatchSetConversations(BatchSetConversationsReq)returns(BatchSetConversationsResp);
|
|
||||||
rpc SetConversation(SetConversationReq)returns(SetConversationResp);
|
|
||||||
rpc SetRecvMsgOpt(SetRecvMsgOptReq)returns(SetRecvMsgOptResp);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -210,12 +210,11 @@ message MsgData {
|
|||||||
uint32 seq = 14;
|
uint32 seq = 14;
|
||||||
int64 sendTime = 15;
|
int64 sendTime = 15;
|
||||||
int64 createTime = 16;
|
int64 createTime = 16;
|
||||||
repeated string atUserIDList = 17;
|
int32 status = 17;
|
||||||
int32 status = 18;
|
map<string, bool> options = 18;
|
||||||
map<string, bool> options = 19;
|
OfflinePushInfo offlinePushInfo = 19;
|
||||||
OfflinePushInfo offlinePushInfo = 20;
|
|
||||||
}
|
}
|
||||||
|
// repeated string atUserIDList = 20;
|
||||||
message OfflinePushInfo{
|
message OfflinePushInfo{
|
||||||
string title = 1;
|
string title = 1;
|
||||||
string desc = 2;
|
string desc = 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user