You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/proto/msg/msg.proto

170 lines
3.6 KiB

4 years ago
syntax = "proto3";
2 years ago
import "Open-IM-Server/pkg/proto/sdk_ws/ws.proto";
2 years ago
option go_package = "Open_IM/pkg/proto/msg;msg";
2 years ago
package msg;
3 years ago
message MsgDataToMQ{
string token =1;
string operationID = 2;
3 years ago
server_api_params.MsgData msgData = 3;
4 years ago
}
3 years ago
3 years ago
message MsgDataToDB {
3 years ago
server_api_params.MsgData msgData = 1;
string operationID = 2;
4 years ago
}
3 years ago
message PushMsgDataToMQ{
string OperationID = 1;
3 years ago
server_api_params.MsgData msgData = 2;
string pushToUserID = 3;
3 years ago
}
2 years ago
message MsgDataToMongoByMQ{
uint64 lastSeq =1;
string aggregationID = 2;
repeated MsgDataToMQ messageList = 3;
string triggerID = 4;
}
4 years ago
//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 {
4 years ago
int32 ErrCode = 1;
string ErrMsg = 2;
3 years ago
uint32 MaxSeq = 3;
uint32 MinSeq = 4;
4 years ago
}
3 years ago
message SendMsgReq {
4 years ago
3 years ago
string token =1;
string operationID = 2;
3 years ago
server_api_params.MsgData msgData = 3;
4 years ago
}
3 years ago
message SendMsgResp {
int32 errCode = 1;
string errMsg = 2;
string serverMsgID = 4;
string clientMsgID = 5;
int64 sendTime = 6;
}
4 years ago
message ClearMsgReq{
string userID = 1;
string opUserID = 2;
string operationID = 3;
4 years ago
}
message ClearMsgResp{
int32 errCode = 1;
string errMsg = 2;
}
2 years ago
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;
}
2 years ago
message SetSendMsgStatusReq{
2 years ago
string operationID = 1;
2 years ago
int32 status = 2;
2 years ago
}
2 years ago
message SetSendMsgStatusResp{
2 years ago
int32 errCode = 1;
string errMsg = 2;
}
message GetSendMsgStatusReq{
string operationID = 1;
}
message GetSendMsgStatusResp{
int32 errCode = 1;
string errMsg = 2;
int32 status = 3;
}
message DelSuperGroupMsgReq{
string opUserID = 1;
string userID = 2;
string groupID = 3;
string operationID = 4;
}
message DelSuperGroupMsgResp{
int32 errCode = 1;
string errMsg = 2;
}
2 years ago
message GetSuperGroupMsgReq{
string operationID = 1;
uint32 Seq = 2;
string groupID = 3;
}
message GetSuperGroupMsgResp{
int32 errCode = 1;
string errMsg = 2;
server_api_params.MsgData msgData = 3;
}
message GetWriteDiffMsgReq{
string operationID = 1;
uint32 Seq = 2;
2 years ago
}
message GetWriteDiffMsgResp{
int32 errCode = 1;
string errMsg = 2;
server_api_params.MsgData msgData = 3;
}
2 years ago
service msg {
3 years ago
rpc GetMaxAndMinSeq(server_api_params.GetMaxAndMinSeqReq) returns(server_api_params.GetMaxAndMinSeqResp);
3 years ago
rpc PullMessageBySeqList(server_api_params.PullMessageBySeqListReq) returns(server_api_params.PullMessageBySeqListResp);
3 years ago
rpc SendMsg(SendMsgReq) returns(SendMsgResp);
3 years ago
rpc DelMsgList(server_api_params.DelMsgListReq) returns(server_api_params.DelMsgListResp);
rpc DelSuperGroupMsg(DelSuperGroupMsgReq) returns(DelSuperGroupMsgResp);
rpc ClearMsg(ClearMsgReq) returns(ClearMsgResp);
2 years ago
rpc SetMsgMinSeq(SetMsgMinSeqReq) returns(SetMsgMinSeqResp);
2 years ago
rpc SetSendMsgStatus(SetSendMsgStatusReq) returns(SetSendMsgStatusResp);
2 years ago
rpc GetSendMsgStatus(GetSendMsgStatusReq) returns(GetSendMsgStatusResp);
2 years ago
rpc GetSuperGroupMsg(GetSuperGroupMsgReq) returns(GetSuperGroupMsgResp);
rpc GetWriteDiffMsg(GetWriteDiffMsgReq) returns(GetWriteDiffMsgResp);
4 years ago
}