using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Common; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_DTO.Inbound; using WIDESEA_IInboundService; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers.Inbound { [Route("api/InboundOrder")] [ApiController] public class InboundOrderController : ApiBaseController { public InboundOrderController(IInboundOrderService service) : base(service) { } /// /// WMS下发入库单据 /// /// /// [HttpPost, Route("AddInboundOrders"), AllowAnonymous] public WebResponseContent AddInboundOrders([FromBody] HouseInbound orderAddDTO) { return Service.AddInboundOrders(orderAddDTO); } /// /// 盘点完成入库 /// /// /// [HttpPost, Route("InventoryIn"), AllowAnonymous] public WebResponseContent InventoryIn([FromBody] string name) { return Service.InventoryIn(name); } /// /// 入库单据取消 /// /// /// [HttpPost, Route("CancelIn"), AllowAnonymous] public WebResponseContent CancelIn([FromBody] HouseCancelIn houseCancelIn) { return Service.CancelIn(houseCancelIn); } } }