package com.prolog.cs.biz.outbound.resource;

import com.prolog.cs.biz.outbound.model.dto.InfTaskOutBackDTO;
import com.prolog.cs.biz.outbound.model.dto.WmsOutPriorityReqDTO;
import com.prolog.cs.biz.outbound.model.out.ContainerBindTaskDto;
import com.prolog.cs.biz.outbound.model.vo.InfTaskOutVO;
import com.prolog.eis.core.dto.business.outboundtask.OutboundTaskIssueDto;
import com.prolog.framework.common.message.RestMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zzz
 * @desc
 * @date 2021/12/17
 */
@FeignClient(value = "${prolog.service.eis}")
public interface EisOutBoundResource {

    @PostMapping("/api/v1/wms/operation/priorityRequest")
    RestMessage<?> priorityRequest(@RequestBody List<WmsOutPriorityReqDTO> wmsOutPriorityReqList);

    @PostMapping("/api/v1/wms/out/outBoundRequest")
    RestMessage<?>  outBoundRequest(List<InfTaskOutVO> infTaskOutVOS);

    @PostMapping("/api/v1/wms/operation/taskCompleteRequest")
    RestMessage<?> confirmContainer(@RequestBody InfTaskOutBackDTO dto);
}
