mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-18 07:49:01 +08:00
conversation
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package OpenIMServer.conversation;
|
||||
import "wrapperspb/wrapperspb.proto";
|
||||
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/conversation";
|
||||
|
||||
message Conversation{
|
||||
@@ -15,18 +16,36 @@ message Conversation{
|
||||
string attachedInfo = 10;
|
||||
bool isPrivateChat = 11;
|
||||
int32 groupAtType = 12;
|
||||
bool isNotInGroup = 13;
|
||||
string ex = 14;
|
||||
int64 updateUnreadCountTime = 15;
|
||||
int32 burnDuration = 16;
|
||||
int64 minSeq = 17;
|
||||
int64 maxSeq = 18;
|
||||
int64 isReadSeq = 19;
|
||||
string ex = 13;
|
||||
int64 updateUnreadCountTime = 14;
|
||||
int32 burnDuration = 15;
|
||||
int64 minSeq = 16;
|
||||
int64 maxSeq = 17;
|
||||
int64 hasReadSeq = 18;
|
||||
}
|
||||
|
||||
message ConversationReq{
|
||||
string conversationID = 1;
|
||||
int32 conversationType = 2;
|
||||
string userID = 3;
|
||||
string groupID = 4;
|
||||
OpenIMServer.protobuf.Int32Value recvMsgOpt = 5;
|
||||
OpenIMServer.protobuf.Int64Value draftTextTime = 6;
|
||||
OpenIMServer.protobuf.BoolValue isPinned = 7;
|
||||
OpenIMServer.protobuf.StringValue attachedInfo = 8;
|
||||
OpenIMServer.protobuf.BoolValue isPrivateChat = 9;
|
||||
OpenIMServer.protobuf.StringValue ex = 10;
|
||||
OpenIMServer.protobuf.Int64Value updateUnreadCountTime = 11;
|
||||
OpenIMServer.protobuf.Int32Value burnDuration = 12;
|
||||
OpenIMServer.protobuf.Int64Value minSeq = 13;
|
||||
OpenIMServer.protobuf.Int64Value maxSeq = 14;
|
||||
OpenIMServer.protobuf.Int64Value hasReadSeq = 15;
|
||||
}
|
||||
|
||||
message ModifyConversationFieldReq{
|
||||
Conversation conversation = 1;
|
||||
int32 fieldType = 2;
|
||||
repeated string userIDList = 3;
|
||||
repeated string userIDList = 1;
|
||||
int32 FieldType = 2;
|
||||
Conversation conversation = 3;
|
||||
}
|
||||
|
||||
message ModifyConversationFieldResp{
|
||||
@@ -138,6 +157,13 @@ message GetConversationsHasReadAndMaxSeqResp {
|
||||
map<string, Seqs> seqs = 1;
|
||||
}
|
||||
|
||||
message SetConversationsReq {
|
||||
repeated string userIDs = 1;
|
||||
ConversationReq conversation = 2;
|
||||
}
|
||||
|
||||
message SetConversationsResp {
|
||||
}
|
||||
|
||||
service conversation {
|
||||
rpc ModifyConversationField(ModifyConversationFieldReq)returns(ModifyConversationFieldResp);
|
||||
@@ -153,4 +179,5 @@ service conversation {
|
||||
rpc DelGroupChatConversations(DelGroupChatConversationsReq) returns(DelGroupChatConversationsResp);
|
||||
rpc GetConversationIDs(GetConversationIDsReq) returns(GetConversationIDsResp);
|
||||
rpc GetConversationsHasReadAndMaxSeq(GetConversationsHasReadAndMaxSeqReq) returns(GetConversationsHasReadAndMaxSeqResp);
|
||||
rpc SetConversations(SetConversationsReq) returns(SetConversationsResp);
|
||||
}
|
||||
|
||||
+753
-670
File diff suppressed because it is too large
Load Diff
@@ -394,11 +394,8 @@ message UserInfoUpdatedTips{
|
||||
|
||||
//////////////////////conversation/////////////////////
|
||||
message ConversationUpdateTips{
|
||||
string UserID = 1;
|
||||
string userID = 1;
|
||||
repeated string conversationIDList = 2;
|
||||
int64 updateUnreadCountTime = 3;
|
||||
|
||||
|
||||
}
|
||||
|
||||
message ConversationSetPrivateTips{
|
||||
@@ -407,6 +404,13 @@ message ConversationSetPrivateTips{
|
||||
bool isPrivate = 3;
|
||||
}
|
||||
|
||||
message ConversationHasReadTips {
|
||||
string userID = 1;
|
||||
string conversationID = 2;
|
||||
int64 hasReadSeq = 3;
|
||||
int64 unreadCountTime = 4;
|
||||
}
|
||||
|
||||
////////////////////message///////////////////////
|
||||
message seqs {
|
||||
repeated int64 seqs = 1;
|
||||
|
||||
Reference in New Issue
Block a user