proto file

This commit is contained in:
Gordon
2021-12-22 10:47:07 +08:00
parent 05c15a104f
commit fb5ea3be84
3 changed files with 18 additions and 69 deletions
+5 -17
View File
@@ -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);
}