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