From d55eda0bb3c3de960833fc4e898706857193c40d Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Mon, 29 Nov 2021 12:00:52 +0800 Subject: [PATCH] pb file --- pkg/proto/relay/relay.proto | 26 ++++++++++++++++++++++++++ pkg/proto/user/user.proto | 25 +------------------------ 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/pkg/proto/relay/relay.proto b/pkg/proto/relay/relay.proto index 56b876c67..a3464e077 100644 --- a/pkg/proto/relay/relay.proto +++ b/pkg/proto/relay/relay.proto @@ -37,8 +37,34 @@ message SingleMsgToUser{ string RecvID = 2; int32 RecvPlatFormID = 3; } +message GetUsersOnlineStatusReq{ + repeated string userIDList = 1; + string operationID = 2; +} +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; + + } +} service OnlineMessageRelayService { rpc MsgToUser(MsgToUserReq) returns(MsgToUserResp); + rpc GetUsersOnlineStatus(GetUsersOnlineStatusReq)returns(GetUsersOnlineStatusResp); // rpc SendMsgByWS(SendMsgByWSReq) returns(MsgToUserResp); } diff --git a/pkg/proto/user/user.proto b/pkg/proto/user/user.proto index 6793dee78..883ab5d73 100644 --- a/pkg/proto/user/user.proto +++ b/pkg/proto/user/user.proto @@ -64,29 +64,6 @@ message UpdateUserInfoReq{ string OperationID = 9; string Uid = 10; } -message GetUsersOnlineStatusReq{ - repeated string userIDList = 1; - string operationID = 2; -} -message GetUsersOnlineStatusResp{ - CommonResp commonResp = 1; - repeated SuccessResult successResult = 2; - repeated FailedDetail failedResult = 3; - message SuccessDetail{ - string platform = 1; - string status = 2; - } - message FailedDetail{ - string userID = 1; - CommonResp commonResp = 2; - } - message SuccessResult{ - string userID = 1; - string status = 2; - repeated SuccessDetail detailPlatformStatus = 3; - - } -} service user { @@ -94,5 +71,5 @@ service user { rpc UpdateUserInfo(UpdateUserInfoReq) returns(CommonResp); rpc DeleteUsers(DeleteUsersReq)returns(DeleteUsersResp); rpc GetAllUsersUid(GetAllUsersUidReq)returns(GetAllUsersUidResp); - rpc GetUsersOnlineStatus(GetUsersOnlineStatusReq)returns(GetUsersOnlineStatusResp); + }