2021-05-26 19:58:57 +08:00
|
|
|
syntax = "proto3";
|
2021-12-22 11:10:13 +08:00
|
|
|
import "Open_IM/pkg/proto/sdk_ws/ws.proto";
|
2021-11-10 15:24:59 +08:00
|
|
|
option go_package = "./relay;pbRelay";
|
2021-05-26 19:58:57 +08:00
|
|
|
package relay;
|
|
|
|
|
|
2021-12-22 10:47:07 +08:00
|
|
|
message OnlinePushMsgReq {
|
|
|
|
|
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-05-26 19:58:57 +08:00
|
|
|
}
|
2021-12-22 10:47:07 +08:00
|
|
|
message OnlinePushMsgResp{
|
2021-05-26 19:58:57 +08:00
|
|
|
repeated SingleMsgToUser resp = 1;
|
2021-12-21 21:40:50 +08:00
|
|
|
}//message SendMsgByWSReq{
|
2021-05-26 19:58:57 +08:00
|
|
|
// string SendID = 1;
|
|
|
|
|
// string RecvID = 2;
|
|
|
|
|
// string Content = 3;
|
|
|
|
|
// int64 SendTime = 4;
|
|
|
|
|
// int64 MsgFrom = 5;
|
|
|
|
|
// int64 ContentType = 6;
|
|
|
|
|
// int64 SessionType = 7;
|
|
|
|
|
// string OperationID = 8;
|
|
|
|
|
// int64 PlatformID = 9;
|
|
|
|
|
//}
|
2021-12-21 21:40:50 +08:00
|
|
|
|
2021-05-26 19:58:57 +08:00
|
|
|
message SingleMsgToUser{
|
|
|
|
|
int64 ResultCode = 1;
|
|
|
|
|
string RecvID = 2;
|
|
|
|
|
int32 RecvPlatFormID = 3;
|
|
|
|
|
}
|
2021-11-29 12:00:52 +08:00
|
|
|
message GetUsersOnlineStatusReq{
|
|
|
|
|
repeated string userIDList = 1;
|
|
|
|
|
string operationID = 2;
|
2021-12-28 20:44:19 +08:00
|
|
|
string opUserID = 3;
|
2021-11-29 12:00:52 +08:00
|
|
|
}
|
|
|
|
|
message GetUsersOnlineStatusResp{
|
|
|
|
|
int32 errCode = 1;
|
|
|
|
|
string errMsg = 2;
|
|
|
|
|
repeated SuccessResult successResult = 3;
|
|
|
|
|
repeated FailedDetail failedResult = 4;
|
|
|
|
|
message SuccessDetail{
|
|
|
|
|
string platform = 1;
|
|
|
|
|
string status = 2;
|
|
|
|
|
}
|
|
|
|
|
message FailedDetail{
|
|
|
|
|
string userID = 3;
|
|
|
|
|
int32 errCode = 1;
|
|
|
|
|
string errMsg = 2;
|
|
|
|
|
}
|
|
|
|
|
message SuccessResult{
|
|
|
|
|
string userID = 1;
|
|
|
|
|
string status = 2;
|
|
|
|
|
repeated SuccessDetail detailPlatformStatus = 3;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-05-26 19:58:57 +08:00
|
|
|
service OnlineMessageRelayService {
|
2021-12-22 10:47:07 +08:00
|
|
|
rpc OnlinePushMsg(OnlinePushMsgReq) returns(OnlinePushMsgResp);
|
2021-11-29 12:00:52 +08:00
|
|
|
rpc GetUsersOnlineStatus(GetUsersOnlineStatusReq)returns(GetUsersOnlineStatusResp);
|
2021-05-26 19:58:57 +08:00
|
|
|
// rpc SendMsgByWS(SendMsgByWSReq) returns(MsgToUserResp);
|
|
|
|
|
}
|
|
|
|
|
|