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


import com.gingersoft.gsa.cloud.base.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.Headers;
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);


}
