using Microsoft.AspNetCore.Mvc; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; using WIDESEAWCS_ISystemServices; using WIDESEAWCS_Model.Models; namespace WIDESEAWCS_Server.Controllers.System { [Route("api/OutStock")] [ApiController] public class OutStockController : ApiBaseController { private readonly IHttpContextAccessor _httpContextAccessor; public OutStockController(Idt_OutstockinfoService service, IHttpContextAccessor httpContextAccessor) : base(service) { _httpContextAccessor = httpContextAccessor; } /// /// 修改当前是否需要出库 /// /// /// [HttpPost, HttpGet, Route("UpdateIsOutStock")] public WebResponseContent UpdateIsOutStock(int isout) { return Service.UpdateIsOutStock(isout); } /// /// 修改正常入库还是直接入库 /// /// /// [HttpPost, HttpGet, Route("UpdateInOut")] public WebResponseContent UpdateInOut(int isout) { return Service.UpdateInOut(isout); } } }