Retrofit的url 的拼接

public interface ServiceAPI {
    //商品展示
    //http://apiv3.yangkeduo.com/v5/newlist?page=1&size=20&ver=1512745500001&pdduid=3470667255
    @GET("{v5}/{newlist}")
    Flowable<ShowGoodsBean> getShowGoods(@Path("v5")String s,@Path("newlist")String str, @Query("page")int i,@Query("size")int o,@Query("ver")String p,@Query("pdduid")String w);

  //商品详情
    @GET("{v5}/{goods}/{goods_id}")
    Flowable<XQBean> getXQGoods(@Path("v5")String s, @Path("goods")String str, @Path("goods_id")int a, @Query("pdduid")String w);
//http://apiv4.yangkeduo.com/reviews/202517471?page=1&size=2&label=1&is_back=1&pdduid=3470667255
  //用户评论
  @GET("{reviews}/{goods_id}")
  Flowable<UserBean> getUserSay(@Path("reviews")String s, @Path("goods_id")int id, @Query("page")int i, @Query("size")int o, @Query("label")int p, @Query("is_back")int  w, @Query("pdduid")String m);
//http://apiv4.yangkeduo.com/recommendation/mall?goods_id=202517471&pdduid=3470667255
    //店铺推荐
    @GET("{recommendation}/{mall}")
    Flowable<DianPuBean> getDianPu(@Path("recommendation")String s, @Path("mall")String id,@Query("goods_id")int i, @Query("pdduif")String o);
}

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值