46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using ZR.Admin.WebApi.Filters;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using ZR.Service.MES.andon.IService;
|
|
using ZR.Model.Dto;
|
|
|
|
namespace DOAN.WebApi.Controllers.MES.andon
|
|
{
|
|
/// <summary>
|
|
/// 安灯交互
|
|
/// </summary>
|
|
[Verify]
|
|
[Route("mes/andonManagement/interaction")]
|
|
public class AndonInteractionController : BaseController
|
|
{
|
|
private IAndonInteractionService _andonInteractionService;
|
|
|
|
|
|
public AndonInteractionController(IAndonInteractionService andonInteractionService)
|
|
{
|
|
_andonInteractionService = andonInteractionService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 呼叫请求
|
|
/// </summary>
|
|
/// <param name="query"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("Call")]
|
|
public IActionResult CallHandle([FromBody] AndonAskQueryDto query)
|
|
{
|
|
if (query == null)
|
|
{
|
|
return SUCCESS(null);
|
|
|
|
}
|
|
var response = _andonInteractionService.CallHandle(query);
|
|
return SUCCESS(response);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|