using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_IServices; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers.OutboundOrder { [Route("api/[controller]")] [ApiController] public class Dt_OutOrderController : ApiBaseController { private readonly IHttpContextAccessor _httpContextAccessor; public Dt_OutOrderController(IDt_OutOrderService service, IHttpContextAccessor httpContextAccessor) : base(service) { _httpContextAccessor = httpContextAccessor; } /// /// 添加生产出库单 /// /// 出库数据 /// 成功或失败 [HttpPost, Route("AddOutOrderProduction"), AllowAnonymous] public WebResponseContent AddOutOrderProduction([FromBody] SaveModel saveModel) { return Service.AddOutOrderProduction(saveModel); } /// /// 添加调拨出库单 /// /// 出库数据 /// 成功或失败 [HttpPost, Route("AddOutOrderTransfer"), AllowAnonymous] public WebResponseContent AddOutOrderTransfer([FromBody] SaveModel saveModel) { return Service.AddOutOrderTransfer(saveModel); } } }