From e53808490577b191029a9791dcdb318c7549561a Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 18 Feb 2020 17:29:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/help/http/api/HttpGetApi.kt | 9 ++++++++- .../main/java/io/legado/app/help/http/api/HttpPostApi.kt | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/http/api/HttpGetApi.kt b/app/src/main/java/io/legado/app/help/http/api/HttpGetApi.kt index 9b44901bc..315dc881f 100644 --- a/app/src/main/java/io/legado/app/help/http/api/HttpGetApi.kt +++ b/app/src/main/java/io/legado/app/help/http/api/HttpGetApi.kt @@ -11,7 +11,7 @@ import retrofit2.http.Url * Created by GKF on 2018/1/21. * get web content */ - +@Suppress("unused") interface HttpGetApi { @GET suspend fun getAsync( @@ -38,4 +38,11 @@ interface HttpGetApi { @QueryMap(encoded = true) queryMap: Map, @HeaderMap headers: Map ): Call + + @GET + suspend fun getMapByteAsync( + @Url url: String, + @QueryMap(encoded = true) queryMap: Map, + @HeaderMap headers: Map + ): Response } diff --git a/app/src/main/java/io/legado/app/help/http/api/HttpPostApi.kt b/app/src/main/java/io/legado/app/help/http/api/HttpPostApi.kt index 86d91d30c..9634b5b79 100644 --- a/app/src/main/java/io/legado/app/help/http/api/HttpPostApi.kt +++ b/app/src/main/java/io/legado/app/help/http/api/HttpPostApi.kt @@ -9,7 +9,7 @@ import retrofit2.http.* * Created by GKF on 2018/1/29. * post */ - +@Suppress("unused") interface HttpPostApi { @FormUrlEncoded