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/chat/chat.proto

83 lines
1.7 KiB

4 years ago
syntax = "proto3";
3 years ago
import "Open_IM/pkg/proto/sdk_ws/ws.proto";
option go_package = "./chat;pbChat";
package pbChat;
4 years ago
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
}
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
}
4 years ago
service Chat {
rpc GetMaxAndMinSeq(GetMaxAndMinSeqReq) returns(GetMaxAndMinSeqResp);
3 years ago
rpc PullMessageBySeqList(server_api_params.PullMessageBySeqListReq) returns(server_api_params.PullMessageBySeqListResp);
3 years ago
rpc SendMsg(SendMsgReq) returns(SendMsgResp);
// rpc DelMsgList(server_api_params.DelMsgListReq) returns(server_api_params.DelMsgListResp);
4 years ago
}