测试
This commit is contained in:
parent
1bbd93e568
commit
645d3e1db0
@ -35,5 +35,7 @@ namespace JiShe.IoT.BusinessSystemAggregation
|
||||
Task<HttpDataResult> BatchCreateDeviceInfoAsync(OpenApiRequest input);
|
||||
|
||||
Task<string> BatchCreateDeviceInfoAsync2(OpenApiRequest input);
|
||||
|
||||
Task<HttpDataResult> BatchCreateDeviceInfoAsync3(OpenApiRequest input);
|
||||
}
|
||||
}
|
||||
|
||||
@ -239,5 +239,23 @@ namespace JiShe.IoT.BusinessSystemAggregation
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -448,7 +448,7 @@ namespace JiShe.IoT.DeviceAggregation
|
||||
{
|
||||
try
|
||||
{
|
||||
return HttpDataResultExtensions.Success("新增设备成功");
|
||||
return HandleOpenApiRequest<BatchCreateDeviceInfoInput>(null, null);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@ -55,5 +55,16 @@ namespace JiShe.IoT.Controllers
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user