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

@@ -16,6 +16,7 @@ abstract interface class CatalogRepository {
Future<FeedPage> fetchFeed({
List<String> types = const [],
String? categoryId,
String? cursor,
int size = 10,
});
@@ -37,9 +38,15 @@ class HttpCatalogRepository implements CatalogRepository {
@override
Future<FeedPage> fetchFeed({
List<String> types = const [],
String? categoryId,
String? cursor,
int size = 10,
}) => _api.feed(types: types, cursor: cursor, size: size);
}) => _api.feed(
types: types,
categoryId: categoryId,
cursor: cursor,
size: size,
);
@override
Future<Drama> fetchDrama(String dramaId) => _api.dramaDetail(dramaId);