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

144 lines
3.0 KiB
Protocol Buffer
Raw Normal View History

2021-05-26 19:19:41 +08:00
syntax = "proto3";
2021-12-21 21:40:50 +08:00
import "Open_IM/pkg/proto/sdk_ws/ws.proto";
2022-07-20 20:59:52 +08:00
option go_package = "./msg;msg";
package msg;
2022-03-16 10:44:58 +08:00
2021-12-22 10:47:07 +08:00
message MsgDataToMQ{
string token =1;
string operationID = 2;
2022-01-17 14:05:09 +08:00
server_api_params.MsgData msgData = 3;
2021-05-26 19:19:41 +08:00
}
2021-06-28 15:33:26 +08:00
2021-12-22 10:47:07 +08:00
message MsgDataToDB {
2022-01-17 14:05:09 +08:00
server_api_params.MsgData msgData = 1;
2021-12-23 17:34:32 +08:00
string operationID = 2;
2021-07-02 14:24:33 +08:00
2021-05-26 19:19:41 +08:00
}
2021-12-22 10:47:07 +08:00
message PushMsgDataToMQ{
string OperationID = 1;
2022-01-17 14:05:09 +08:00
server_api_params.MsgData msgData = 2;
2022-02-08 16:49:45 +08:00
string pushToUserID = 3;
2021-12-22 10:47:07 +08:00
}
2022-06-16 12:04:57 +08:00
message MsgDataToMongoByMQ{
uint64 lastSeq =1;
string aggregationID = 2;
repeated MsgDataToMQ messageList = 3;
string triggerID = 4;
}
2021-05-26 19:19:41 +08:00
2021-12-23 17:34:32 +08:00
//message PullMessageReq {
// string UserID = 1;
// int64 SeqBegin = 2;
// int64 SeqEnd = 3;
// string OperationID = 4;
//}
//
//message PullMessageResp {
// int32 ErrCode = 1;
// string ErrMsg = 2;
// int64 MaxSeq = 3;
// int64 MinSeq = 4;
// repeated GatherFormat SingleUserMsg = 5;
// repeated GatherFormat GroupUserMsg = 6;
//}
//message PullMessageBySeqListReq{
// string UserID = 1;
// string OperationID = 2;
// repeated int64 seqList =3;
//}
message GetMaxAndMinSeqReq {
string UserID = 1;
string OperationID = 2;
}
message GetMaxAndMinSeqResp {
2021-05-26 19:19:41 +08:00
int32 ErrCode = 1;
string ErrMsg = 2;
2022-01-20 11:36:43 +08:00
uint32 MaxSeq = 3;
uint32 MinSeq = 4;
2021-05-26 19:19:41 +08:00
}
2021-12-21 21:40:50 +08:00
message SendMsgReq {
2021-05-26 19:19:41 +08:00
2021-12-21 21:40:50 +08:00
string token =1;
string operationID = 2;
2022-01-17 14:05:09 +08:00
server_api_params.MsgData msgData = 3;
2021-05-26 19:19:41 +08:00
}
2021-12-21 21:40:50 +08:00
message SendMsgResp {
2021-12-23 17:34:32 +08:00
int32 errCode = 1;
string errMsg = 2;
string serverMsgID = 4;
string clientMsgID = 5;
int64 sendTime = 6;
2022-05-31 19:16:29 +08:00
}
2021-05-26 19:19:41 +08:00
2022-05-31 19:16:29 +08:00
message ClearMsgReq{
string userID = 1;
string opUserID = 2;
string operationID = 3;
2021-05-26 19:19:41 +08:00
}
2022-03-15 18:13:58 +08:00
2022-05-31 19:16:29 +08:00
message ClearMsgResp{
int32 errCode = 1;
string errMsg = 2;
}
2022-03-15 18:13:58 +08:00
2022-07-20 20:59:52 +08:00
message SetMsgMinSeqReq{
string userID = 1;
string groupID = 2;
uint32 minSeq = 3;
string operationID = 4;
string opUserID = 5;
}
message SetMsgMinSeqResp{
int32 errCode = 1;
string errMsg = 2;
}
2022-07-26 15:16:46 +08:00
message SetSendMsgFailedFlagReq{
string operationID = 1;
}
message SetSendMsgFailedFlagResp{
int32 errCode = 1;
string errMsg = 2;
}
message GetSendMsgStatusReq{
string operationID = 1;
}
message GetSendMsgStatusResp{
int32 errCode = 1;
string errMsg = 2;
int32 status = 3;
}
2022-07-29 12:24:54 +08:00
message DelSuperGroupMsgReq{
string opUserID = 1;
string userID = 2;
string groupID = 3;
string operationID = 4;
}
message DelSuperGroupMsgResp{
int32 errCode = 1;
string errMsg = 2;
}
2022-07-20 20:59:52 +08:00
service msg {
2022-05-28 17:22:19 +08:00
rpc GetMaxAndMinSeq(server_api_params.GetMaxAndMinSeqReq) returns(server_api_params.GetMaxAndMinSeqResp);
2022-01-17 14:05:09 +08:00
rpc PullMessageBySeqList(server_api_params.PullMessageBySeqListReq) returns(server_api_params.PullMessageBySeqListResp);
2021-12-21 21:40:50 +08:00
rpc SendMsg(SendMsgReq) returns(SendMsgResp);
2022-03-17 12:48:54 +08:00
rpc DelMsgList(server_api_params.DelMsgListReq) returns(server_api_params.DelMsgListResp);
2022-07-29 12:24:54 +08:00
rpc DelSuperGroupMsg(DelSuperGroupMsgReq) returns(DelSuperGroupMsgResp);
2022-05-31 19:16:29 +08:00
rpc ClearMsg(ClearMsgReq) returns(ClearMsgResp);
2022-07-20 20:59:52 +08:00
rpc SetMsgMinSeq(SetMsgMinSeqReq) returns(SetMsgMinSeqResp);
2022-07-26 15:16:46 +08:00
rpc SetSendMsgFailedFlag(SetSendMsgFailedFlagReq) returns(SetSendMsgFailedFlagResp);
rpc GetSendMsgStatus(GetSendMsgStatusReq) returns(GetSendMsgStatusResp);
2021-05-26 19:19:41 +08:00
}