| | |
| | | 锘縰sing Microsoft.AspNetCore.Mvc; |
| | | 锘縰sing Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core.Utilities; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_WCS; |
| | |
| | | [ApiController] |
| | | public class ToMESController : ControllerBase |
| | | { |
| | | private static readonly object AddMES_infoobj = new object(); |
| | | /// <summary> |
| | | /// 娣诲姞宸ュ崟淇℃伅 |
| | | /// </summary> |
| | |
| | | { |
| | | return ToMesServer.AddActualProduction(request); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="json"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("AddMes_Info"), AllowAnonymous] |
| | | public WebResponseContent AddMES_info([FromBody] object json) |
| | | { |
| | | lock (AddMES_infoobj) |
| | | { |
| | | return ToMesServer.AddMes_Info(json); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |