using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Rhea.Common;
using Tiger.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Tiger.IBusiness;
namespace Tiger.Api.Controllers.WMS
{
public partial class WMSController : ControllerBase
{
///
/// 备料完成通知
///
///
///
[HttpPost]
[Route("api/[controller]/Agv/materialPreparation")]
public IActionResult Agv_materialPreparationAsync([FromBody] AgvMPInput action)
{
ApiAction response = new();
try
{
response = response.GetResponse(_IAGV.materialPreparation(action));
}
catch (System.Exception ex)
{
response = response.GetResponse().CatchExceptionWithLog(ex);
}
return Ok(response);
}
///
/// 放行
///
///
///
[HttpPost]
[Route("api/[controller]/Agv/carPass")]
public IActionResult Agv_carPassAsync([FromBody] AgvMPInput action)
{
ApiAction response = new();
try
{
response = response.GetResponse(_IAGV.carPass(action));
}
catch (System.Exception ex)
{
response = response.GetResponse().CatchExceptionWithLog(ex);
}
return Ok(response);
}
[HttpPost]
[Route("api/[controller]/Agv/UpdateMReqStatus")]
public IActionResult Agv_UpdateMReqStatusAsync([FromBody] AgvMRUpdateInput action)
{
ApiAction response = new();
try
{
response = response.GetResponse(_IAGV.UpdateStatus(action));
}
catch (System.Exception ex)
{
response = response.GetResponse().CatchExceptionWithLog(ex);
}
return Ok(response);
}
}
}