using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Common.CommonEnum;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO;
using WIDESEA_DTO.Stock;
using WIDESEA_DTO.Task;
using WIDESEA_ITaskInfoService;
using WIDESEA_Model.Models;
namespace WIDESEA_WMSServer.Controllers.TaskInfo
{
///
/// 任务
///
[Route("api/Task")]
[ApiController]
public class TaskController : ApiBaseController
{
public TaskController(ITaskService service) : base(service)
{
}
///
/// 创建入库任务
///
///
///
[HttpPost("CreateTaskInbound"),AllowAnonymous]
public async Task CreateTaskInboundAsync([FromBody] CreateTaskDto taskDto)
{
return await Service.CreateTaskInboundAsync(taskDto);
}
///
/// 堆垛机取放货完成后物流通知化成分容柜完成信号
///
///
///
[HttpPost("InOrOutCompleted"), AllowAnonymous]
public async Task InOrOutCompletedAsync([FromBody] InputDto input)
{
return await Service.InOrOutCompletedAsync(input);
}
///
/// 化成分容柜定时向物流更新分容柜状态信息
///
///
///
[HttpPost("SendLocationStatus"), AllowAnonymous]
public async Task SendLocationStatusAsync([FromBody] InputDto input)
{
return await Service.SendLocationStatusAsync(input);
}
///
/// 分容柜工作完成后调用此接口通知物流出库
///
///
///
[HttpPost("RequestOutbound"), AllowAnonymous]
public async Task RequestOutboundAsync([FromBody] InputDto input)
{
return await Service.RequestOutboundAsync(input);
}
///
/// 入库完成分容调用获取托盘上每个通道电芯
///
///
///
[HttpPost("GetPalletCodeCell"), AllowAnonymous]
public async Task GetPalletCodeCellAsync([FromBody] InputDto input)
{
return await Service.GetPalletCodeCellAsync(input);
}
}
}