ShipmentService.java 937 Bytes
package com.huaheng.robot.shipment;

import com.huaheng.robot.https.ApiResponse;
import com.huaheng.robot.https.HttpConstant;

import java.util.List;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

public interface ShipmentService  {


    /**
     * 自动配盘
     * @param body
     * @return
     */
    @POST(HttpConstant.AUTO_SHIPMENT)
    Observable<ApiResponse<List<Integer>>> autoShipment(@Body RequestBody body);

    /**
     * 生成出库任务
     * @param body
     * @return
     */
    @POST(HttpConstant.CREATE_SHIP_TASK)
    Observable<ApiResponse<List<Integer>>> createShipTask(@Body RequestBody body);

    /**
     * 执行任务列表
     * @param body
     * @return
     */
    @POST(HttpConstant.EXECUTE_TASK_LIST)
    Observable<ApiResponse<String>> executeList(@Body RequestBody body);

}