package com.github.hunter0x7c7.sync.model.server; /* * @Auther: Hunter * @Date: 2022/12/02/16:43 * @Description: */ import com.github.hunter0x7c7.sync.model.bean.PhotoBean; import com.github.hunter0x7c7.sync.model.data.result.ResultEntity; import io.reactivex.Observable; import okhttp3.ResponseBody; import retrofit2.http.GET; import retrofit2.http.Query; import retrofit2.http.Streaming; import retrofit2.http.Url; public interface ServiceApi { /** * 获取图片列表 */ @GET("http://pic.sogou.com/napi/pc/searchList") Observable> getImageList(@Query("mode") String mode, @Query("start") int start , @Query("xml_len") int size, @Query("query") String key); @Streaming @GET Observable downloadImage(@Url String image); }