//ApiService package com.bwei.zonghe_1.data.service; import com.bwei.zonghe_1.data.bean.BuyCarBean; import com.bwei.zonghe_1.data.bean.WangBean; import com.bwei.zonghe_1.data.bean.ZongBean; import io.reactivex.Observable; import retrofit2.http.GET; import retrofit2.http.Query; /** * Created by 杨柳 on 2018/9/21. */ public interface ApiService { @GET("product/getCatagory") Observable<WangBean> getWang(@Query("page")String page); @GET("ad/getAd") Observable<ZongBean> getZong(@Query("page")String page); @GET("product/getCarts?uid=71") Observable<BuyCarBean> getCar(@Query("page")String page); }
//Contast
package com.bwei.zonghe_1.data.service; /** * Created by 杨柳 on 2018/9/21. */ public class Contast { public static final String WANG_BEAN = "https://www.zhaoapi.cn/"; //综合排序 public static final String ZONG_BASE = "https://www.zhaoapi.cn/"; public static final String RIGHT_STRING = "https://www.zhaoapi.cn/product/getCarts?uid=71"; public static final String RIGHT_BASE = "https://www.zhaoapi.cn/"; }