mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: show total season/series
Closes #164 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -328,6 +328,8 @@ class Api {
|
||||
|
||||
static const String spaceFav = '/x/v3/fav/folder/space';
|
||||
|
||||
static const String seasonSeries = '/x/polymer/web-space/seasons_series_list';
|
||||
|
||||
// 用户名片信息
|
||||
static const String memberCardInfo = '/x/web-interface/card';
|
||||
|
||||
|
||||
@@ -154,6 +154,25 @@ class MemberHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<LoadingState> seasonSeriesList({
|
||||
required int? mid,
|
||||
required int pn,
|
||||
}) async {
|
||||
dynamic res = await Request().get(
|
||||
Api.seasonSeries,
|
||||
queryParameters: {
|
||||
'mid': mid,
|
||||
'page_num': pn,
|
||||
'page_size': 10,
|
||||
},
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
return LoadingState.success(res.data['data']['items_lists']);
|
||||
} else {
|
||||
return LoadingState.error(res.data['message']);
|
||||
}
|
||||
}
|
||||
|
||||
static Future<LoadingState> spaceArchive({
|
||||
required ContributeType type,
|
||||
required int? mid,
|
||||
|
||||
Reference in New Issue
Block a user