feat(theater): 剧场分类列表服务端分页
This commit is contained in:
1 parent
f8769f2e1d
commit
13a14f3e85
16 files changed
+769
-21
No files matched your search
@@ -140,6 +140,7 @@ class ScriptedCatalogRepository implements CatalogRepository {
|
||||
@override
|
||||
Future<FeedPage> fetchFeed({
|
||||
List<String> types = const [],
|
||||
String? categoryId,
|
||||
String? cursor,
|
||||
int size = 10,
|
||||
}) async => const FeedPage();
|
||||
|
||||
@@ -40,6 +40,7 @@ void main() {
|
||||
|
||||
final page = await api.feed(
|
||||
types: const ['ANIME', 'LIVE'],
|
||||
categoryId: '7',
|
||||
cursor: '9',
|
||||
size: 20,
|
||||
);
|
||||
@@ -47,6 +48,7 @@ void main() {
|
||||
expect(adapter.requests.single.uri.path, '/app/feed');
|
||||
expect(adapter.requests.single.queryParameters, {
|
||||
'types': 'ANIME,LIVE',
|
||||
'categoryId': '7',
|
||||
'cursor': '9',
|
||||
'size': '20',
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user