//简单的get请求(URL中带有参数)
@GET("News/{userId}")
Call<TradesBean> getItem(@Path("userId") String userId);
// post json传参
@POST("/xxx")
Observable<BaseModel<AppLoginBean>> getUserLogin(@Body HashMap<String, String> params);
// post 表单传参
@FormUrlEncoded
@POST("/xxx")
Observable<BaseModel<Object>> getChangePassword(@FieldMap HashMap<String, String> params);
//GET 传参
@GET("/xxx")
Observable<BaseModel<List<CustTitleBean>>> getIntention(@QueryMap HashMap<String, String> params);
// post 上传文件
/**
* 本地上传文件
*/
@Streaming
@Multipart
@POST("http://192.168.1.234:9300/upload")
Observable<BaseModel<Object>> upFile(@Part MultipartBody.Part parts);
// 下载文件
@Streaming
@GET
Observable<ResponseBody> downloadFile(@Url String fileUrl);
// 文件 参数同时上传
@Streaming
@Multipart
@POST("/xxx")
Observable<BaseModel<Object>> getUpSome2(@PartMap Map<String, RequestBody> map,
@Part MultipartBody.Part parts);