1.定义个接口
public interface ShopService {
@GET("/course_api/wares/hot")
Call<ShopBean> getShop(@Query("pageSize") int pageSize,
@Query("curPage") int curPage);
}
这里写明了使用get还是post
@Query("curPage")
1.定义个接口
public interface ShopService {
@GET("/course_api/wares/hot")
Call<ShopBean> getShop(@Query("pageSize") int pageSize,
@Query("curPage") int curPage);
}
这里写明了使用get还是post
@Query("curPage")