From b7ac35c97fd8119bf67c1139818810e7313a628d Mon Sep 17 00:00:00 2001 From: wangzelong <2692854983@qq.com> Date: 星期一, 24 十月 2022 17:24:24 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/IStation/Service.V4.1 --- Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs b/Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs index 95108a3..5654864 100644 --- a/Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs +++ b/Application/IStation.Application.Monitor/monitor_control/MonitorControlNTConfigure_Controller.cs @@ -26,7 +26,13 @@ [HttpPost] public string TestStart() { - return "娴嬭瘯鎴愬姛!"; + var paras = new Model.MonitorTestControlParas(); + paras.Type = 1; + paras.Paras = string.Empty; + + var runQueue = new RabbitMqExChangeHelper(); + runQueue.Push("NTTEST", paras); + return "OK"; } /// <summary> @@ -36,7 +42,13 @@ [HttpPost] public string TestStop() { - return "娴嬭瘯鎴愬姛!"; + var paras = new Model.MonitorTestControlParas(); + paras.Type = 0; + paras.Paras = string.Empty; + + var runQueue = new RabbitMqExChangeHelper(); + runQueue.Push("NTTEST", paras); + return "OK"; } /// <summary> @@ -46,7 +58,13 @@ [HttpPost] public string TestChange(NTTestChangeInput input) { - return "娴嬭瘯鎴愬姛!"; + 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