Skip to content

Commit

Permalink
feat: add Seqs time, GetActiveConversation
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Sep 25, 2024
1 parent b5ba0f0 commit 1018d55
Show file tree
Hide file tree
Showing 14 changed files with 559 additions and 263 deletions.
2 changes: 1 addition & 1 deletion auth/auth.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion errinfo/errinfo.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion group/group.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

780 changes: 529 additions & 251 deletions msg/msg.pb.go

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions msg/msg.proto
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ message GetConversationsHasReadAndMaxSeqReq {
message Seqs {
int64 maxSeq = 1;
int64 hasReadSeq = 2;
int64 maxSeqTime = 3;
}

message GetConversationsHasReadAndMaxSeqResp {
Expand Down Expand Up @@ -335,6 +336,21 @@ message GetSeqMessageResp {
map<string, sdkws.PullMsgs> notificationMsgs = 2;
}

message GetActiveConversationReq {
repeated string conversationIDs = 1;
int64 limit = 2;
}

message ActiveConversation {
string conversationID = 1;
int64 lastTime = 2;
int64 maxSeq = 3;
}

message GetActiveConversationResp {
repeated ActiveConversation conversations = 1;
}

service msg {
//获取最小最大seq(包括用户的,以及指定群组的)
rpc GetMaxSeq(sdkws.GetMaxSeqReq) returns (sdkws.GetMaxSeqResp);
Expand Down Expand Up @@ -382,4 +398,6 @@ service msg {

rpc ClearMsg(ClearMsgReq) returns (ClearMsgResp);
rpc DestructMsgs(DestructMsgsReq) returns (DestructMsgsResp);

rpc GetActiveConversation(GetActiveConversationReq) returns (GetActiveConversationResp);
}
2 changes: 1 addition & 1 deletion msggateway/msggateway.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion push/push.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion relation/relation.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rtc/rtc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdkws/sdkws.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion statistics/statistics.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion third/third.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion user/user.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wrapperspb/wrapperspb.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1018d55

Please sign in to comment.