package com.gingersoft.gsa.delivery_pick_mode.mvp.server;

import com.gingersoft.gsa.cloud.common.bean.BaseResult;
import com.gingersoft.gsa.delivery_pick_mode.mvp.bean.PrjQueryBean;

import io.reactivex.Observable;
import me.jessyan.retrofiturlmanager.RetrofitUrlManager;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface PrjQueryServer {

    @GET("printerRecording/getKitchenPrint" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<PrjQueryBean> getKitchenPrint(@Query("orderNo") String orderId, @Query("restaurantId") String restaurantId);

    @POST("printerRecording/update" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> updatePrjState(@Body RequestBody requestBody);

}
