ApiRetrofit的接口

public interface ApiRetrofit {
    /**
     * Get基本请求,这里从Call改为Observable被观察者
     * @param url
     * @return
     */
    @GET
    public Observable get(@Url String url);

    /**
     * Get请求提交表单
     * @param url
     * @param map
     * @return
     */
    @GET
    public Observable get(@Url String url, @QueryMap Map map);

    /**
     * Post请求提交表单
     * @param url
     * @param map
     * @return
     */
    @FormUrlEncoded
    @POST
    public Observable post(@Url String url, @FieldMap Map map);
}

你可能感兴趣的:(ApiRetrofit的接口)