|
|
|
@ -2,23 +2,11 @@ syntax = "proto3";
|
|
|
|
|
option go_package = "./relay;pbRelay";
|
|
|
|
|
package relay;
|
|
|
|
|
|
|
|
|
|
message MsgToUserReq {
|
|
|
|
|
string SendID = 1;
|
|
|
|
|
string RecvID = 2;
|
|
|
|
|
string Content = 5;
|
|
|
|
|
int64 RecvSeq = 6;
|
|
|
|
|
int64 SendTime = 7;
|
|
|
|
|
int32 MsgFrom = 8;
|
|
|
|
|
int32 ContentType = 9;
|
|
|
|
|
int32 SessionType = 10;
|
|
|
|
|
string OperationID = 11;
|
|
|
|
|
string ServerMsgID = 12;
|
|
|
|
|
int32 PlatformID = 13;
|
|
|
|
|
string SenderNickName = 14;
|
|
|
|
|
string SenderFaceURL = 15;
|
|
|
|
|
string ClientMsgID = 16;
|
|
|
|
|
message OnlinePushMsgReq {
|
|
|
|
|
string OperationID = 1;
|
|
|
|
|
open_im_sdk.MsgData msgData = 2;
|
|
|
|
|
}
|
|
|
|
|
message MsgToUserResp{
|
|
|
|
|
message OnlinePushMsgResp{
|
|
|
|
|
repeated SingleMsgToUser resp = 1;
|
|
|
|
|
}//message SendMsgByWSReq{
|
|
|
|
|
// string SendID = 1;
|
|
|
|
@ -63,7 +51,7 @@ message GetUsersOnlineStatusResp{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
service OnlineMessageRelayService {
|
|
|
|
|
rpc MsgToUser(MsgToUserReq) returns(MsgToUserResp);
|
|
|
|
|
rpc OnlinePushMsg(OnlinePushMsgReq) returns(OnlinePushMsgResp);
|
|
|
|
|
rpc GetUsersOnlineStatus(GetUsersOnlineStatusReq)returns(GetUsersOnlineStatusResp);
|
|
|
|
|
// rpc SendMsgByWS(SendMsgByWSReq) returns(MsgToUserResp);
|
|
|
|
|
}
|
|
|
|
|