opt pub page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-08 21:42:35 +08:00
parent 8bf55ec95a
commit 05153fda72
27 changed files with 1374 additions and 288 deletions

View File

@@ -125,4 +125,26 @@ class ReplyGrpc {
);
return res..dataOrNull?.replies.removeWhere((item) => needRemoveGrpc(item));
}
static Future<LoadingState<SearchItemReply>> searchItem({
required int page,
required SearchItemType itemType,
required int oid,
int type = 1,
String? keyword,
}) {
return GrpcReq.request(
GrpcUrl.searchItem,
SearchItemReq(
cursor: SearchItemCursorReq(
next: Int64(page),
itemType: itemType,
),
oid: Int64(oid),
type: Int64(type),
keyword: keyword,
),
SearchItemReply.fromBuffer,
);
}
}