PLC 交互
This commit is contained in:
@@ -3,6 +3,7 @@ using DOAN.Model.PBL.Dto;
|
||||
using DOAN.Model.PBL;
|
||||
using DOAN.Service.PBL.IService;
|
||||
using DOAN.Admin.WebApi.Filters;
|
||||
using DOAN.ServiceCore.Middleware;
|
||||
|
||||
//创建时间:2024-09-23
|
||||
namespace DOAN.Admin.WebApi.Controllers.PBL
|
||||
@@ -23,6 +24,7 @@ namespace DOAN.Admin.WebApi.Controllers.PBL
|
||||
//TODO 接受工单 亮灯
|
||||
|
||||
[HttpPost("mes_light_up")]
|
||||
[DoanPlcActionFilter]
|
||||
public IActionResult MESLightUp([FromBody] LightUpDto light)
|
||||
{
|
||||
var response= mesInteraction.MESLightUp(light);
|
||||
@@ -32,21 +34,16 @@ namespace DOAN.Admin.WebApi.Controllers.PBL
|
||||
|
||||
//TODO 扫码灭灯
|
||||
[HttpGet("mes_light_down")]
|
||||
[DoanPlcActionFilter]
|
||||
public IActionResult MESLightDown(string scan_code)
|
||||
{
|
||||
var response = mesInteraction.MESLightDown(scan_code);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
[HttpGet("test_plc")]
|
||||
public IActionResult TestPLC(int num)
|
||||
{
|
||||
var response = mesInteraction.TestPLC(num);
|
||||
|
||||
return SUCCESS(response);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user