Files
open-im-server/pkg/proto/conversation/conversation.proto
T

98 lines
2.2 KiB
Protocol Buffer
Raw Normal View History

2022-04-22 15:12:10 +08:00
syntax = "proto3";
2022-09-21 08:36:33 +08:00
option go_package = "Open_IM/pkg/proto/conversation;conversation";
2022-04-22 15:12:10 +08:00
package conversation;
message Conversation{
2022-04-22 19:44:58 +08:00
string ownerUserID = 1;
string conversationID = 2;
int32 recvMsgOpt = 3;
int32 conversationType = 4;
string userID = 5;
string groupID = 6;
int32 unreadCount = 7;
int64 draftTextTime = 8;
bool isPinned = 9;
string attachedInfo = 10;
bool isPrivateChat = 11;
int32 groupAtType = 12;
bool isNotInGroup = 13;
string ex = 14;
2022-08-21 23:25:39 +08:00
int64 updateUnreadCountTime = 15;
2022-11-16 11:54:24 +08:00
int32 burnDuration = 16;
2022-08-21 23:25:39 +08:00
2022-04-22 19:44:58 +08:00
}
message ModifyConversationFieldReq{
Conversation conversation = 1;
int32 fieldType = 2;
repeated string userIDList = 3;
}
message ModifyConversationFieldResp{
2022-04-22 15:12:10 +08:00
}
2023-02-02 12:06:25 +08:00
message SetConversationReq{
Conversation Conversation = 1;
int32 notificationType = 2;
}
message SetConversationResp{
}
message SetRecvMsgOptReq {
string OwnerUserID = 1;
string ConversationID = 2;
int32 RecvMsgOpt = 3;
int32 notificationType = 4;
}
message SetRecvMsgOptResp {
}
message GetConversationReq{
string ConversationID = 1;
string OwnerUserID = 2;
}
message GetConversationResp{
Conversation Conversation = 2;
}
message GetConversationsReq{
string OwnerUserID = 1;
repeated string ConversationIDs = 2;
}
message GetConversationsResp{
repeated Conversation Conversations = 2;
}
message GetAllConversationsReq{
string OwnerUserID = 1;
}
message GetAllConversationsResp{
repeated Conversation Conversations = 2;
}
message BatchSetConversationsReq{
repeated Conversation Conversations = 1;
string OwnerUserID = 2;
int32 notificationType = 3;
}
message BatchSetConversationsResp{
repeated string Success = 1;
repeated string Failed = 2;
}
2022-04-24 11:23:54 +08:00
service conversation {
2022-04-22 19:44:58 +08:00
rpc ModifyConversationField(ModifyConversationFieldReq)returns(ModifyConversationFieldResp);
2023-02-02 12:06:25 +08:00
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);
2022-04-22 15:12:10 +08:00
}