This commit is contained in:
ChenYi 2025-10-31 14:36:21 +08:00
parent 1bbd93e568
commit 645d3e1db0
4 changed files with 32 additions and 1 deletions

View File

@ -35,5 +35,7 @@ namespace JiShe.IoT.BusinessSystemAggregation
Task<HttpDataResult> BatchCreateDeviceInfoAsync(OpenApiRequest input); Task<HttpDataResult> BatchCreateDeviceInfoAsync(OpenApiRequest input);
Task<string> BatchCreateDeviceInfoAsync2(OpenApiRequest input); Task<string> BatchCreateDeviceInfoAsync2(OpenApiRequest input);
Task<HttpDataResult> BatchCreateDeviceInfoAsync3(OpenApiRequest input);
} }
} }

View File

@ -239,5 +239,23 @@ namespace JiShe.IoT.BusinessSystemAggregation
return ex.Message; return ex.Message;
} }
} }
/// <summary>
/// 业务系统批量新增设备数据Msg 字段为 BatchCreateDeviceInfoInput 实体
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public async Task<HttpDataResult> BatchCreateDeviceInfoAsync3(OpenApiRequest input)
{
try
{
return HandleOpenApiRequest<BatchCreateDeviceInfoInput>(null, null);
}
catch (Exception ex)
{
return HandleOpenApiRequest<BatchCreateDeviceInfoInput>(null, null);
}
}
} }
} }

View File

@ -448,7 +448,7 @@ namespace JiShe.IoT.DeviceAggregation
{ {
try try
{ {
return HttpDataResultExtensions.Success("新增设备成功"); return HandleOpenApiRequest<BatchCreateDeviceInfoInput>(null, null);
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@ -55,5 +55,16 @@ namespace JiShe.IoT.Controllers
{ {
return await _businessSystemAggregationService.BatchCreateDeviceInfoAsync2(input); return await _businessSystemAggregationService.BatchCreateDeviceInfoAsync2(input);
} }
/// <summary>
/// 业务系统批量新增设备数据
/// </summary>
[HttpPost(nameof(BatchCreateDeviceInfoAsync3))]
[SwaggerOperation(summary: "业务系统批量新增设备数据", Tags = new[] { "AggregationBusiness" })]
public async Task<HttpDataResult> BatchCreateDeviceInfoAsync3(OpenApiRequest input)
{
return await _businessSystemAggregationService.BatchCreateDeviceInfoAsync3(input);
}
} }
} }