2021-05-26 19:58:57 +08:00
|
|
|
syntax = "proto3";
|
2022-09-20 23:31:28 +08:00
|
|
|
import "Open-IM-Server/pkg/proto/sdk_ws/ws.proto";
|
2022-09-21 08:36:33 +08:00
|
|
|
option go_package = "Open_IM/pkg/proto/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{
|
2022-06-02 16:44:55 +08:00
|
|
|
repeated SingleMsgToUserPlatform resp = 1;
|
|
|
|
|
}
|
|
|
|
|
message SingelMsgToUserResultList{
|
|
|
|
|
string userID =1;
|
|
|
|
|
repeated SingleMsgToUserPlatform resp = 2;
|
2022-06-02 17:37:00 +08:00
|
|
|
bool onlinePush = 3;
|
2022-06-02 16:44:55 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
message OnlineBatchPushOneMsgReq{
|
|
|
|
|
string OperationID = 1;
|
|
|
|
|
server_api_params.MsgData msgData = 2;
|
|
|
|
|
repeated string pushToUserIDList = 3;
|
|
|
|
|
}
|
|
|
|
|
message OnlineBatchPushOneMsgResp{
|
|
|
|
|
repeated SingelMsgToUserResultList singlePushResult= 1;
|
|
|
|
|
}
|
|
|
|
|
//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
|
|
|
|
2022-06-02 16:44:55 +08:00
|
|
|
message SingleMsgToUserPlatform{
|
2021-05-26 19:58:57 +08:00
|
|
|
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;
|
2022-12-06 10:37:16 +08:00
|
|
|
string connID = 3;
|
2022-12-06 14:24:29 +08:00
|
|
|
bool isBackground = 4;
|
2021-11-29 12:00:52 +08:00
|
|
|
}
|
|
|
|
|
message FailedDetail{
|
|
|
|
|
string userID = 3;
|
|
|
|
|
int32 errCode = 1;
|
|
|
|
|
string errMsg = 2;
|
|
|
|
|
}
|
|
|
|
|
message SuccessResult{
|
|
|
|
|
string userID = 1;
|
|
|
|
|
string status = 2;
|
|
|
|
|
repeated SuccessDetail detailPlatformStatus = 3;
|
|
|
|
|
|
|
|
|
|
}
|
2022-06-06 20:54:53 +08:00
|
|
|
}
|
|
|
|
|
message KickUserOfflineReq{
|
|
|
|
|
string operationID = 1;
|
2022-07-29 15:47:19 +08:00
|
|
|
int32 platformID = 2;
|
2022-06-06 20:54:53 +08:00
|
|
|
repeated string kickUserIDList = 3;
|
|
|
|
|
}
|
|
|
|
|
message KickUserOfflineResp{
|
|
|
|
|
|
2021-11-29 12:00:52 +08:00
|
|
|
}
|
2022-07-29 15:47:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
message MultiTerminalLoginCheckReq{
|
|
|
|
|
string userID = 1;
|
|
|
|
|
int32 platformID = 2;
|
|
|
|
|
string token = 3;
|
|
|
|
|
string operationID = 4;
|
|
|
|
|
}
|
|
|
|
|
message MultiTerminalLoginCheckResp{
|
|
|
|
|
int32 errCode = 1;
|
|
|
|
|
string errMsg = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-20 20:59:52 +08:00
|
|
|
service relay {
|
2021-12-22 10:47:07 +08:00
|
|
|
rpc OnlinePushMsg(OnlinePushMsgReq) returns(OnlinePushMsgResp);
|
2022-07-29 15:47:19 +08:00
|
|
|
rpc GetUsersOnlineStatus(GetUsersOnlineStatusReq) returns(GetUsersOnlineStatusResp);
|
2022-06-02 16:44:55 +08:00
|
|
|
rpc OnlineBatchPushOneMsg(OnlineBatchPushOneMsgReq) returns(OnlineBatchPushOneMsgResp);
|
2022-06-09 18:24:32 +08:00
|
|
|
rpc SuperGroupOnlineBatchPushOneMsg(OnlineBatchPushOneMsgReq) returns(OnlineBatchPushOneMsgResp);
|
2022-06-06 20:54:53 +08:00
|
|
|
rpc KickUserOffline(KickUserOfflineReq) returns(KickUserOfflineResp);
|
2022-07-29 15:47:19 +08:00
|
|
|
rpc MultiTerminalLoginCheck(MultiTerminalLoginCheckReq) returns(MultiTerminalLoginCheckResp);
|
2023-01-02 19:07:05 +08:00
|
|
|
rpc SuperGroupBackgroundOnlinePush(OnlineBatchPushOneMsgReq) returns(OnlineBatchPushOneMsgResp);
|
2021-05-26 19:58:57 +08:00
|
|
|
}
|
|
|
|
|
|