using AutoMapper.Configuration.Annotations; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Core.BaseController; using WIDESEA_DTO; using WIDESEA_IStoragIntegrationServices; namespace WIDESEA_WMSServer.Controllers; [Route("api/[controller]")] [ApiController] public class MCSController : Controller { private readonly IMCSService _MCSService; private readonly IHttpContextAccessor _httpContextAccessor; public MCSController(IMCSService MCSService, IHttpContextAccessor httpContextAccessor) { _httpContextAccessor = httpContextAccessor; _MCSService = MCSService; } /// /// 请求移库 /// /// /// [HttpPost, Route("RequestChangeLocation"), AllowAnonymous] public WebResponseContent RequestChangeLocation([FromBody] object input) { return _MCSService.RequestChangeLocation(input); } /// /// 分容库位同步 /// /// /// [HttpPost, Route("ModifyAccessStatus"), AllowAnonymous] public WebResponseContent ModifyAccessStatus([FromBody] object input) { return _MCSService.ModifyAccessStatus(input); } /// /// 分容获取库位托盘 /// /// /// [HttpPost, Route("RequestCellInfo"), AllowAnonymous] public object RequsetCellInfo([FromBody] object input) { return _MCSService.RequsetCellInfo(input); } }