fix(接口测试): 修复场景报告获取详情
This commit is contained in:
parent
3f8a2e4599
commit
31549256e4
|
@ -94,9 +94,9 @@ public class ApiScenarioReportController {
|
||||||
@Operation(summary = "接口测试-接口报告-报告详情获取")
|
@Operation(summary = "接口测试-接口报告-报告详情获取")
|
||||||
@CheckOwner(resourceId = "#reportId", resourceType = "api_scenario_report")
|
@CheckOwner(resourceId = "#reportId", resourceType = "api_scenario_report")
|
||||||
@RequiresPermissions(value = {PermissionConstants.PROJECT_API_REPORT_READ, PermissionConstants.PROJECT_API_SCENARIO_UPDATE}, logical = Logical.OR)
|
@RequiresPermissions(value = {PermissionConstants.PROJECT_API_REPORT_READ, PermissionConstants.PROJECT_API_SCENARIO_UPDATE}, logical = Logical.OR)
|
||||||
public List<ApiScenarioReportDetailDTO> getDetail(@PathVariable String stepId,
|
public List<ApiScenarioReportDetailDTO> getDetail(@PathVariable String reportId,
|
||||||
@PathVariable String reportId) {
|
@PathVariable String stepId) {
|
||||||
return apiScenarioReportService.getDetail(stepId, reportId);
|
return apiScenarioReportService.getDetail(reportId, stepId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/get/detail/{shareId}/{reportId}/{stepId}")
|
@GetMapping("/get/detail/{shareId}/{reportId}/{stepId}")
|
||||||
|
@ -105,7 +105,7 @@ public class ApiScenarioReportController {
|
||||||
@PathVariable String stepId) {
|
@PathVariable String stepId) {
|
||||||
ShareInfo shareInfo = apiReportShareService.checkResource(shareId);
|
ShareInfo shareInfo = apiReportShareService.checkResource(shareId);
|
||||||
apiReportShareService.validateExpired(shareInfo);
|
apiReportShareService.validateExpired(shareInfo);
|
||||||
return apiScenarioReportService.getDetail(stepId, reportId);
|
return apiScenarioReportService.getDetail(reportId, stepId);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -245,7 +245,7 @@ public class ApiScenarioReportService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ApiScenarioReportDetailDTO> getDetail(String stepId, String reportId) {
|
public List<ApiScenarioReportDetailDTO> getDetail(String reportId, String stepId) {
|
||||||
List<ApiScenarioReportDetail> apiReportDetails = checkResourceStep(stepId, reportId);
|
List<ApiScenarioReportDetail> apiReportDetails = checkResourceStep(stepId, reportId);
|
||||||
List<ApiScenarioReportDetailDTO> results = new ArrayList<>();
|
List<ApiScenarioReportDetailDTO> results = new ArrayList<>();
|
||||||
apiReportDetails.forEach(apiReportDetail -> {
|
apiReportDetails.forEach(apiReportDetail -> {
|
||||||
|
|
Loading…
Reference in New Issue