mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add new API
This commit is contained in:
@@ -248,6 +248,12 @@ abstract class _EHApi {
|
||||
Future<ApiResult<GMetaInfos>> _getGalleriesMeta(@Path("gids") String gids,
|
||||
// ignore: unused_element
|
||||
{@CancelRequest() CancelToken? cancel});
|
||||
@GET('/gallery/thumbnail/{gids}')
|
||||
// ignore: unused_element
|
||||
Future<ApiResult<GalleryThumbnails>> _getGalleriesThumbnail(
|
||||
@Path("gids") String gids,
|
||||
// ignore: unused_element
|
||||
{@CancelRequest() CancelToken? cancel});
|
||||
@GET('/gallery/list')
|
||||
Future<ApiResult<List<GMeta>>> listGalleries(
|
||||
{@Query("all") bool? all,
|
||||
@@ -455,6 +461,11 @@ class EHApi extends __EHApi {
|
||||
return _getGalleriesMeta(gids.join(","), cancel: cancel);
|
||||
}
|
||||
|
||||
Future<ApiResult<GalleryThumbnails>> getGalleriesThumbnail(List<int> gids,
|
||||
{CancelToken? cancel}) {
|
||||
return _getGalleriesThumbnail(gids.join(","), cancel: cancel);
|
||||
}
|
||||
|
||||
Future<ApiResult<Tags>> getTags(List<int> ids, {CancelToken? cancel}) {
|
||||
return _getTags(ids.join(","), cancel: cancel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user