From 723bac8afe6f8597cbe57651d415b828b9650ec5 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Tue, 26 Oct 2021 10:20:51 +0800 Subject: [PATCH] pb file --- src/proto/chat/chat.proto | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/proto/chat/chat.proto b/src/proto/chat/chat.proto index 19cf454ca..3c66c99dc 100644 --- a/src/proto/chat/chat.proto +++ b/src/proto/chat/chat.proto @@ -63,14 +63,15 @@ message PullMessageBySeqListReq{ string OperationID = 2; repeated int64 seqList =3; } -message GetNewSeqReq { +message GetMaxAndMinSeqReq { string UserID = 1; string OperationID = 2; } -message GetNewSeqResp { +message GetMaxAndMinSeqResp { int32 ErrCode = 1; string ErrMsg = 2; - int64 Seq = 3; + int64 MaxSeq = 3; + int64 MinSeq = 4; } message GatherFormat{ // @inject_tag: json:"id" @@ -139,7 +140,7 @@ message UserSendMsgResp { } service Chat { - rpc GetNewSeq(GetNewSeqReq) returns(GetNewSeqResp); + rpc GetMaxAndMinSeq(GetMaxAndMinSeqReq) returns(GetMaxAndMinSeqResp); rpc PullMessage(PullMessageReq) returns(PullMessageResp); rpc PullMessageBySeqList(PullMessageBySeqListReq) returns(PullMessageResp); rpc UserSendMsg(UserSendMsgReq) returns(UserSendMsgResp);