WmsController.cs
825 Bytes
using Hh.Mes.POJO.ApiEntity;
using Hh.Mes.Service;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Hh.Mes.Api.Controllers
{
[Route("api/[controller]/[action]")]
[ApiController]
public class WmsController : BaseController
{
private readonly WmsSnService service;
public WmsController(WmsSnService service, IHttpContextAccessor accessor)
{
this.service = service;
this.context = accessor.HttpContext;
}
#region WMS-SN信息推送IOT
[HttpPost]
[ActionName("iot/v1/SendIoTDataBySN")]
public string SendIoTDataBySN(WmsSnInfoEntity requestData)
{
var result = service.SendIoTDataBySN(requestData);
return Serialize(result);
}
#endregion
}
}