package com.joe.print.mvp.model.server;


import com.gingersoft.gsa.cloud.common.bean.BaseResult;
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;

/**
 * Created by Wyh on 2019/12/20.
 */
public interface PrintInfoService {
//    @Headers({"Domain-Name: yc_location"})
    @POST("printerDevice/add" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> addPrinter(@Body RequestBody requestBody);

//        @Headers({"Domain-Name: yc_location"})
    @GET("printerDevice/list?" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> getPrinterList(@Query("restaurantId") int restaurantId);

    @POST("printerDevice/deletes" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> deletePrinterList(@Body RequestBody requestBody);

//    @Headers({"Domain-Name: yc_location"})
    @POST("printerDevice/update" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> updatePrinter(@Body RequestBody requestBody);

//    @Headers({"Domain-Name: yc_location"})
    @GET("printerModel/list?" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> getPrinterModelList(@Query("restaurantId") int restaurantId);

    @GET("printerComplexionConfig/list?" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> getCurrencyPrenterList(@Query("restaurantId") String restaurantId);

    @POST("printerComplexionConfig/insert" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> addCurrencyPrenter(@Body RequestBody requestBody);

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

}
