This commit is contained in:
2023-08-29 06:59:36 +08:00
parent d19c7d6d18
commit 359fbf7d06
4 changed files with 117 additions and 6 deletions

View File

@@ -51,7 +51,12 @@ abstract class _EHApi {
@DELETE('/token')
Future<ApiResult<bool>> deleteToken({@Query("token") String? token});
@GET('/token')
Future<ApiResult<Token>> getToken({@Query("token") String? token});
Future<ApiResult<TokenWithUserInfo>> getToken({@Query("token") String? token});
@GET('/file/{id}')
Future<HttpResponse> getFile(@Path("id") int id);
@GET('/file/random')
Future<HttpResponse> getRandomFile({@Query("is_nsfw") bool? isNsfw, @Query("is_ad") bool? isAd, @Query("thumb") bool? thumb});
}
class EHApi extends __EHApi {