| | |
| | | /// </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> |
| | |
| | | /// </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> |
| | |
| | | /// </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"; |
| | | } |
| | | |
| | | |