| | |
| | | import retrofit2.Call; |
| | | import retrofit2.http.Body; |
| | | import retrofit2.http.GET; |
| | | import retrofit2.http.Header; |
| | | import retrofit2.http.Multipart; |
| | | import retrofit2.http.POST; |
| | | import retrofit2.http.Part; |
| | | import retrofit2.http.PartMap; |
| | | import retrofit2.http.Path; |
| | | import retrofit2.http.QueryMap; |
| | | import retrofit2.http.Streaming; |
| | | import retrofit2.http.Url; |
| | |
| | | @POST() |
| | | Observable<BaseResponse> requestPost(@Url String url, @Body Map<String, Object> params); |
| | | |
| | | @GET("{url}") |
| | | Observable<BaseResponse> requestGet(@Path("url") String url, @QueryMap Map<String, Object> params); |
| | | @GET() |
| | | Observable<BaseResponse> requestGet(@Url String url, @QueryMap Map<String, Object> params,@Header("token") String token); |
| | | |
| | | @GET("{url}") |
| | | Observable<BaseResponse> requestGet(@Path("url") String url); |
| | | @GET() |
| | | Observable<BaseResponse> requestGet(@Url String url); |
| | | |
| | | @GET() |
| | | Observable<BaseResponse> requestGet(@Url String url, @Header("token") String token); |
| | | |
| | | @Streaming |
| | | @GET() |