package com.baoshi.swms.net.api;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * SWAS API ROUTER(JAVA)
 *
 * @author Zhendong Zhou
 * @date 2021/12/21 15:55
 */
public interface SwmsApi {
    @GET("api/picking/getTask")
    Observable<ResponseBody> getPickingTask(@Query(value = "userId") Long userId, @Query(value = "type") String pickingName);

    @GET("api/picking/getUserTodayWorkNum")
    Observable<ResponseBody> getUserTodayWorkNum(@Query("userId") Long userId);

    @GET("api/picking/giveUpTask")
    Observable<ResponseBody> giveUpTask(@Query("userId") Long userId, @Query("code") String code);

    @POST("api/picking")
    Observable<ResponseBody> picking(@Body RequestBody body);
}
