qinchulong
3 天以前 dc467182bfaeeb0dfd9bc2d6c4ec8fe64b179446
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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);
    }
}