|
@@ -22,6 +22,7 @@ using Microsoft.Extensions.Configuration;
|
|
|
using Ropin.Inspection.Service.VMC.Interface;
|
|
|
using NPOI.SS.Formula.Functions;
|
|
|
using MySqlX.XDevAPI.Relational;
|
|
|
+using Newtonsoft.Json.Linq;
|
|
|
|
|
|
namespace Ropin.Inspection.Api.Controllers.Base
|
|
|
{
|
|
@@ -155,6 +156,23 @@ namespace Ropin.Inspection.Api.Controllers.Base
|
|
|
return new ApiResult(ReturnCode.Success);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ [HttpPost]
|
|
|
+ [AllowAnonymous]
|
|
|
+ [Route("/device/business/generalApp/pushData/alarmData/{deviceNo}")]
|
|
|
+ public async Task<ApiResultModel<object>> AlarmData([FromRoute] string deviceNo, [FromBody] JObject alarmDataModel)
|
|
|
+ {
|
|
|
+ Console.WriteLine("进入/device/business/generalApp/pushData/alarmData/JObject" + deviceNo);
|
|
|
+ return await Task.FromResult(ApiResultModel<object>.GetSuccess(new object { }));
|
|
|
+ }
|
|
|
+ [HttpPost]
|
|
|
+ [AllowAnonymous]
|
|
|
+ [Route("/device/business/generalApp/pushData/alarmData/{deviceNo}")]
|
|
|
+ public async Task<ApiResultModel<object>> AlarmData([FromRoute] string deviceNo)
|
|
|
+ {
|
|
|
+ Console.WriteLine("进入/device/business/generalApp/pushData/alarmData/没有JObject" + deviceNo);
|
|
|
+ return await Task.FromResult(ApiResultModel<object>.GetSuccess(new object { }));
|
|
|
+ }
|
|
|
[HttpPost]
|
|
|
[AllowAnonymous]
|
|
|
[Route("/device/business/generalApp/pushData/alarmData/{deviceNo}")]
|