From 54f46d7fa5555927fda3edebf89cba02a8c91768 Mon Sep 17 00:00:00 2001 From: tangxu <76880903@qq.com> Date: 星期一, 24 十月 2022 19:27:07 +0800 Subject: [PATCH] quxiao五号沟凌桥方向 --- Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs | 30 ++++++++++++++++++++++++------ 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs b/Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs index 9b1565e..5654864 100644 --- a/Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs +++ b/Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs @@ -24,9 +24,15 @@ /// </summary> [Route("TestStart@V1.0")] [HttpPost] - public bool TestStart() + public string TestStart() { - return true; + var paras = new Model.MonitorTestControlParas(); + paras.Type = 1; + paras.Paras = string.Empty; + + var runQueue = new RabbitMqExChangeHelper(); + runQueue.Push("NTTEST", paras); + return "OK"; } /// <summary> @@ -34,9 +40,15 @@ /// </summary> [Route("TestStop@V1.0")] [HttpPost] - public bool TestStop() + public string TestStop() { - return true; + var paras = new Model.MonitorTestControlParas(); + paras.Type = 0; + paras.Paras = string.Empty; + + var runQueue = new RabbitMqExChangeHelper(); + runQueue.Push("NTTEST", paras); + return "OK"; } /// <summary> @@ -44,9 +56,15 @@ /// </summary> [Route("TestChange@V1.0")] [HttpPost] - public bool TestChange(NTTestChangeInput input) + public string TestChange(NTTestChangeInput input) { - return true; + var paras = new Model.MonitorTestControlParas(); + paras.Type = -1; + paras.Paras = input.HZ.ToString(); + + var runQueue = new RabbitMqExChangeHelper(); + runQueue.Push("NTTEST", paras); + return "OK"; } -- Gitblit v1.9.3