From 84f2ca2dc4a8641f6906e76cb39d7a06284a70dd Mon Sep 17 00:00:00 2001 From: "Wei.He" Date: Tue, 19 Dec 2023 11:19:36 +0800 Subject: [PATCH] fix(network): update pagination parameter name from 'perPage' to 'per_page' in Pixabay API interface (fixed #35). --- .../wei/picquest/core/network/retrofit/RetrofitPqNetwork.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/network/src/main/java/com/wei/picquest/core/network/retrofit/RetrofitPqNetwork.kt b/core/network/src/main/java/com/wei/picquest/core/network/retrofit/RetrofitPqNetwork.kt index 4b7d771..98a4065 100644 --- a/core/network/src/main/java/com/wei/picquest/core/network/retrofit/RetrofitPqNetwork.kt +++ b/core/network/src/main/java/com/wei/picquest/core/network/retrofit/RetrofitPqNetwork.kt @@ -30,7 +30,7 @@ interface RetrofitPixabayApi { @Query("q") query: String, @Query("image_type") imageType: String = "photo", @Query("page") page: Int, - @Query("perPage") perPage: Int, + @Query("per_page") perPage: Int, // Add more parameters as needed ): NetworkSearchImages @@ -43,7 +43,7 @@ interface RetrofitPixabayApi { @Query("q") query: String, @Query("video_type") videoType: String = "film", @Query("page") page: Int, - @Query("perPage") perPage: Int, + @Query("per_page") perPage: Int, // Add more parameters as needed ): NetworkSearchVideos }