Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-15 12:24:39 +08:00
parent cb58822009
commit bdc524e486
29 changed files with 223 additions and 248 deletions

View File

@@ -230,19 +230,19 @@ abstract final class SearchHttp {
}
}
static Future<LoadingState> episodeInfo({dynamic epId}) async {
final res = await Request().get(
Api.episodeInfo,
queryParameters: {
'ep_id': ?epId,
},
);
if (res.data['code'] == 0) {
return Success(res.data['data']);
} else {
return Error(res.data['message']);
}
}
// static Future<LoadingState> episodeInfo({dynamic epId}) async {
// final res = await Request().get(
// Api.episodeInfo,
// queryParameters: {
// 'ep_id': ?epId,
// },
// );
// if (res.data['code'] == 0) {
// return Success(res.data['data']);
// } else {
// return Error(res.data['message']);
// }
// }
static Future<LoadingState<SearchTrendingData>> searchTrending({
int limit = 30,