| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using AutoMapper.Configuration.Annotations; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_IStoragIntegrationServices; |
| | | |
| | |
| | | public class MCSController : Controller |
| | | { |
| | | private readonly IMCSService _MCSService; |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | |
| | | public MCSController(IMCSService MCSService) { _MCSService = MCSService; } |
| | | public MCSController(IMCSService MCSService, IHttpContextAccessor httpContextAccessor) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _MCSService = MCSService; |
| | | } |
| | | |
| | | [HttpPost("NotifyFinishTest")] |
| | | /// <summary> |
| | | /// 分容测试完成通知 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("NotifyFinishTest"), AllowAnonymous] |
| | | public WebResponseContent NotifyFinishTest([FromBody] object input) |
| | | { |
| | | return _MCSService.NotifyFinishTest(input); |
| | | } |
| | | |
| | | [HttpPost("RequestChangeLocation")] |
| | | /// <summary> |
| | | /// 请求移库 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("RequestChangeLocation"), AllowAnonymous] |
| | | public WebResponseContent RequestChangeLocation([FromBody] object input) |
| | | { |
| | | return _MCSService.RequestChangeLocation(input); |
| | | } |
| | | |
| | | [HttpPost("ModifyAccessStatus")] |
| | | /// <summary> |
| | | /// 分容库位同步 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ModifyAccessStatus"), AllowAnonymous] |
| | | public WebResponseContent ModifyAccessStatus([FromBody] object input) |
| | | { |
| | | return _MCSService.ModifyAccessStatus(input); |
| | | } |
| | | |
| | | [HttpPost("RequsetCellInfo")] |
| | | public WebResponseContent RequsetCellInfo([FromBody] object input) |
| | | /// <summary> |
| | | /// 分容获取库位托盘 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("RequestCellInfo"), AllowAnonymous] |
| | | public object RequsetCellInfo([FromBody] object input) |
| | | { |
| | | return _MCSService.RequsetCellInfo(input); |
| | | } |