feat(theater): 剧场分类列表服务端分页

This commit is contained in:
Zhou Weidong committed 2026-10-21 18:24:14 +08:00
1 parent f8769f2e1d
commit 13a14f3e85
16 files changed
+769 -21

No files matched your search

+14 -2
View File
@@ -518,6 +518,7 @@ class _PendingAnimeCatalog extends FakeCatalogRepository {
@override
Future<FeedPage> fetchFeed({
List<String> types = const [],
String? categoryId,
String? cursor,
int size = 10,
}) {
@@ -525,7 +526,12 @@ class _PendingAnimeCatalog extends FakeCatalogRepository {
animeCalls++;
return anime.future;
}
return super.fetchFeed(types: types, cursor: cursor, size: size);
return super.fetchFeed(
types: types,
categoryId: categoryId,
cursor: cursor,
size: size,
);
}
}
@@ -533,12 +539,18 @@ class _EmptyAnimeCatalog extends FakeCatalogRepository {
@override
Future<FeedPage> fetchFeed({
List<String> types = const [],
String? categoryId,
String? cursor,
int size = 10,
}) {
if (types.contains('ANIME')) {
return Future.value(const FeedPage(dramas: []));
}
return super.fetchFeed(types: types, cursor: cursor, size: size);
return super.fetchFeed(
types: types,
categoryId: categoryId,
cursor: cursor,
size: size,
);
}
}