CookbookApiService.java
1.2 KB
package com.naji.xiaotao.cookbook.service;
import com.naji.xiaotao.cookbook.bean.OuterEntity;
import com.naji.xiaotao.cookbook.bean.ReduceBean;
import com.naji.xiaotao.cookbook.bean.ResultEntity;
import java.util.List;
import java.util.Map;
import io.reactivex.Observable;
import me.goldze.mvvmhabit.http.BaseResponse;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
public interface CookbookApiService {
//获取菜谱列表信息
@GET("?service=Android.Cookbook.GetCookbookByClass")
Observable<BaseResponse<List<OuterEntity>>> getCookbookList(@QueryMap Map<String,String> params);
//添加菜品到购物车
@GET("?service=Android.Orders.AddCart")
Observable<BaseResponse<List<ResultEntity>>> addCookToCart(@QueryMap Map<String,String> params);
//删减菜品从购物车
@GET("?service=Android.Orders.ReduceOrder ")
Observable<BaseResponse<List<ResultEntity>>> reduceCookFromCart(@QueryMap Map<String,String> params);
//获取已点菜品规格做法列表
@GET("?service=Android.Cookbook.GetCookbookSelBySpecsId")
Observable<BaseResponse<List<List<ReduceBean>>>> getCookbookSelBySpecsId(@QueryMap Map<String,String> params);
}