mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-28 13:20:16 +08:00
opt pub page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ class GrpcUrl {
|
||||
static const detailList = '$reply/DetailList';
|
||||
static const dialogList = '$reply/DialogList';
|
||||
// static const replyInfo = '$reply/ReplyInfo';
|
||||
static const searchItem = '$reply/SearchItem';
|
||||
|
||||
// im
|
||||
static const im = '/bilibili.im.interface.v1.ImInterface';
|
||||
|
||||
Reference in New Issue
Block a user