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 ToMESController : Controller
|
{
|
private readonly IToMESService _ToMESService;
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
|
public ToMESController(IToMESService ToMESService, IHttpContextAccessor httpContextAccessor)
|
{
|
_httpContextAccessor = httpContextAccessor;
|
_ToMESService = ToMESService;
|
}
|
|
|
/// <summary>
|
/// 产品同步
|
/// </summary>
|
/// <param name="input"></param>
|
/// <returns></returns>
|
[HttpPost, Route("productSynchronous"), AllowAnonymous]
|
public WebResponseContent productSynchronous([FromBody] object input)
|
{
|
return _ToMESService.productSynchronous(input);
|
}
|
|
|
/// <summary>
|
/// 接收EDI出库订单
|
/// </summary>
|
/// <param name="input"></param>
|
/// <returns></returns>
|
[HttpPost, Route("ediOut"), AllowAnonymous]
|
public WebResponseContent ediOut([FromBody] object input)
|
{
|
return _ToMESService.ediOut(input);
|
}
|
|
/// <summary>
|
/// 接收EDI入库订单
|
/// </summary>
|
/// <param name="input"></param>
|
/// <returns></returns>
|
[HttpPost, Route("ediIn"), AllowAnonymous]
|
public WebResponseContent ediIn([FromBody] object input)
|
{
|
return _ToMESService.ediIn(input);
|
}
|
}
|