opt: unread & zan grpc & readlist open with browser (#852)

* opt: unread

* opt: zan grpc

* feat: readlist open with browser
This commit is contained in:
My-Responsitories
2025-05-11 18:58:00 +08:00
committed by GitHub
parent 8d34e6f340
commit 72734d4b4e
13 changed files with 127 additions and 208 deletions

View File

@@ -62,6 +62,7 @@ class GrpcUrl {
static const keywordBlockingAdd = '$im2/KeywordBlockingAdd';
static const keywordBlockingDelete = '$im2/KeywordBlockingDelete';
static const syncFetchSessionMsgs = '$im/SyncFetchSessionMsgs';
static const getTotalUnread = '$im/GetTotalUnread';
}
class GrpcRepo {

View File

@@ -199,4 +199,13 @@ class ImGrpc {
KeywordBlockingDeleteReply.fromBuffer,
);
}
static Future<LoadingState<RspTotalUnread>> getTotalUnread(
{int? unreadType}) {
return GrpcRepo.request(
GrpcUrl.getTotalUnread,
ReqTotalUnread(unreadType: unreadType, showUnfollowList: 1),
RspTotalUnread.fromBuffer,
);
}
}