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/msggateway/msg_gateway.proto

97 lines
2.3 KiB

4 years ago
syntax = "proto3";
2 years ago
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
2 years ago
option go_package = "OpenIM/pkg/proto/msggateway;msggateway";
package OpenIMServer.msggateway;
4 years ago
3 years ago
message OnlinePushMsgReq {
2 years ago
sdkws.MsgData msgData = 1;
string pushToUserID = 2;
4 years ago
}
3 years ago
message OnlinePushMsgResp{
repeated SingleMsgToUserPlatform resp = 1;
}
2 years ago
message SingleMsgToUserResults {
string userID =1;
repeated SingleMsgToUserPlatform resp = 2;
bool onlinePush = 3;
}
message OnlineBatchPushOneMsgReq{
2 years ago
sdkws.MsgData msgData = 1;
repeated string pushToUserIDs = 2;
}
message OnlineBatchPushOneMsgResp{
2 years ago
repeated SingleMsgToUserResults singlePushResult= 1;
}
//message SendMsgByWSReq{
4 years ago
// 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;
//}
3 years ago
message SingleMsgToUserPlatform{
4 years ago
int64 ResultCode = 1;
string RecvID = 2;
int32 RecvPlatFormID = 3;
}
2 years ago
3 years ago
message GetUsersOnlineStatusReq{
2 years ago
repeated string userIDs = 1;
3 years ago
}
3 years ago
message GetUsersOnlineStatusResp{
2 years ago
repeated SuccessResult successResult = 1;
repeated FailedDetail failedResult = 2;
3 years ago
message SuccessDetail{
string platform = 1;
string status = 2;
2 years ago
string connID = 3;
bool isBackground = 4;
3 years ago
}
message FailedDetail{
2 years ago
string userID = 1;
3 years ago
}
message SuccessResult{
string userID = 1;
string status = 2;
repeated SuccessDetail detailPlatformStatus = 3;
}
2 years ago
}
2 years ago
message KickUserOfflineReq{
2 years ago
int32 platformID = 1;
repeated string kickUserIDList = 2;
2 years ago
}
message KickUserOfflineResp{
3 years ago
}
message MultiTerminalLoginCheckReq{
string userID = 1;
int32 platformID = 2;
string token = 3;
string operationID = 4;
}
message MultiTerminalLoginCheckResp{
}
2 years ago
service msgGateway {
3 years ago
rpc OnlinePushMsg(OnlinePushMsgReq) returns(OnlinePushMsgResp);
rpc GetUsersOnlineStatus(GetUsersOnlineStatusReq) returns(GetUsersOnlineStatusResp);
rpc OnlineBatchPushOneMsg(OnlineBatchPushOneMsgReq) returns(OnlineBatchPushOneMsgResp);
2 years ago
rpc SuperGroupOnlineBatchPushOneMsg(OnlineBatchPushOneMsgReq) returns(OnlineBatchPushOneMsgResp);
2 years ago
rpc KickUserOffline(KickUserOfflineReq) returns(KickUserOfflineResp);
rpc MultiTerminalLoginCheck(MultiTerminalLoginCheckReq) returns(MultiTerminalLoginCheckResp);
4 years ago
}