2024-10-07 09:51:55 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using WcsMain.ApiServe.ControllerFilter;
|
2024-11-15 11:37:55 +08:00
|
|
|
|
using WcsMain.ApiServe.Dto.WMSEntity;
|
|
|
|
|
|
using WcsMain.ApiServe.Dto.WMSEntity.Convey;
|
2024-10-07 09:51:55 +08:00
|
|
|
|
using WcsMain.ApiServe.Service.WmsService;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WcsMain.ApiServe.Controllers.WmsController;
|
|
|
|
|
|
|
|
|
|
|
|
[Route("api/wms/convey")]
|
|
|
|
|
|
[ApiController]
|
|
|
|
|
|
[ServiceFilter<ResponseFilterAttribute>]
|
|
|
|
|
|
[WmsApiExceptionFilter]
|
|
|
|
|
|
public class ConveyController(ConveyService conveyService) : ControllerBase
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 接受上位系统发送过来的输送任务
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("conveyTask")]
|
|
|
|
|
|
public WmsApiResponse GetConveyTask([FromBody] List<GetConveyTaskRequest> request) => conveyService.GetConveyTask(request);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 释放站台,放箱子离开
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("disposeVehicle")]
|
|
|
|
|
|
public WmsApiResponse DisposeVehicle([FromBody] DisposeVehicleRequest request) => conveyService.DisposeVehicle(request);
|
|
|
|
|
|
|
|
|
|
|
|
}
|