TangshiApiService.java
1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.naji.xiaotao.tangshi.service;
import com.naji.xiaotao.tangshi.entity.FastOrderEntity;
import com.naji.xiaotao.tangshi.entity.OrderEntity;
import com.naji.xiaotao.tangshi.entity.PrintEntity;
import com.naji.xiaotao.tangshi.entity.TangShiEntity;
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.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
public interface TangshiApiService {
//获取工作台首页桌位列表
@GET("?service=Android.Tables.GetTableListsBySellerId")
Observable<BaseResponse<List<List<TangShiEntity>>>> getTableList(@Query("sellerid") String sellerid);
//选桌位,人数后创建订单
@GET("?service=Android.Orders.CreateOrder")
Observable<BaseResponse<List<OrderEntity>>> createOrder(@QueryMap Map<String,String> params);
//消息处理告诉后台
@GET("?service=Android.JPush.GetAppHandle")
Observable<BaseResponse<String>> getAppHandle(@QueryMap Map<String,String> params);
//获取快速点餐订单
@GET("?service=Android.Orders.GetSellerOrderListBytype")
Observable<BaseResponse<List<List<FastOrderEntity>>>> getSellerOrderListByType(@QueryMap Map<String,String> params);
//转台
@GET("?service=Android.Orders.ChangeeTable")
Observable<BaseResponse<List<String>>> changeTable(@QueryMap Map<String,String> params);
//清台
@GET("?service=Android.Tables.SetClearTable")
Observable<BaseResponse<List<String>>> setClearTable(@QueryMap Map<String,String> params);
//获取订单票据信息
@GET("?service=Android.Seller.GetSellerTeamplateById")
Observable<BaseResponse<List<List<PrintEntity>>>> getSellerTeamplageById(@QueryMap Map<String,String> params);
//打印预结单
@GET("?service=Android.Prints.PrintsOrderOnly")
Observable<BaseResponse<List<List<String>>>> printOrderOnly(@QueryMap Map<String,String> params);
}