using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_DTO.Inbound; using WIDESEA_IInboundService; using WIDESEA_IOutboundService; using WIDESEA_ITaskInfoService; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers { [Route("api/PDA")] [Authorize, ApiController] public class PDAController : Controller { private readonly IInboundService _inboundService; private readonly IOutboundService _outboundService; private readonly ITaskService _taskService; public PDAController(ITaskService taskService, IInboundService inboundService,IOutboundService outboundService) { _inboundService = inboundService; _outboundService = outboundService; _taskService = taskService; } [HttpPost, Route("CallMateriel")] public WebResponseContent CallMateriel(string endPoint) { return _taskService.CallMateriel(endPoint); } [HttpPost, Route("MaterielCarry")] public WebResponseContent MaterielCarry(string startPoint) { return _taskService.MaterielCarry(startPoint); } [HttpPost, Route("MaterielGroup")] public WebResponseContent MaterielGroup([FromBody] MaterielGroupDTO materielGroupDTO) { return _inboundService.InbounOrderService.MaterielGroup(materielGroupDTO); } [HttpPost, Route("QueryOrderInfo")] public WebResponseContent QueryOrderInfo(int pageNo, string orderNo) { return _inboundService.InbounOrderService.QueryOrderInfo(pageNo, orderNo); } } }