using Autofac.Core; 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_DTO.Outbound; using WIDESEA_IOutboundService; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers.Outbound { [Route("api/OutboundOrder")] [ApiController] public class OutboundOrderController : ApiBaseController { public OutboundOrderController(IOutboundOrderService service) : base(service) { } [HttpPost, Route("GetOutboundOrder"), AllowAnonymous] public WebResponseContent GetOutboundOrder([FromBody] OutboundOrderGetDTO outboundOrderGetDTO) { return Service.GetOutboundOrder(outboundOrderGetDTO); } [HttpPost, Route("GetOutboundOrderDetail"), AllowAnonymous] public WebResponseContent GetOutboundOrderDetail([FromBody] string OrderNo) { return Service.GetOutboundOrderDetail(OrderNo); } } }