fix(接口测试): 修复分享报告打开失败的缺陷
--bug=1027158 --user=王孝刚 【接口测试】报告-接口用例-集合报告-分享-打开失败 https://www.tapd.cn/55049933/s/1382976
This commit is contained in:
parent
0873b444c7
commit
cee01f2a0c
|
@ -37,20 +37,17 @@ public class ApiScenarioReportController {
|
||||||
private ShareInfoService shareInfoService;
|
private ShareInfoService shareInfoService;
|
||||||
|
|
||||||
@GetMapping("/get/{reportId}")
|
@GetMapping("/get/{reportId}")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_READ)
|
|
||||||
public ApiScenarioReportResult get(@PathVariable String reportId) {
|
public ApiScenarioReportResult get(@PathVariable String reportId) {
|
||||||
return apiReportService.get(reportId, false);
|
return apiReportService.get(reportId, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/get/{shareId}/{reportId}")
|
@GetMapping("/get/{shareId}/{reportId}")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_READ)
|
|
||||||
public ApiScenarioReportResult get(@PathVariable String shareId, @PathVariable String reportId) {
|
public ApiScenarioReportResult get(@PathVariable String shareId, @PathVariable String reportId) {
|
||||||
shareInfoService.validateExpired(shareId);
|
shareInfoService.validateExpired(shareId);
|
||||||
return apiReportService.get(reportId, false);
|
return apiReportService.get(reportId, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/get/detail/{reportId}")
|
@GetMapping("/get/detail/{reportId}")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_READ)
|
|
||||||
public ApiScenarioReportResult getAll(@PathVariable String reportId) {
|
public ApiScenarioReportResult getAll(@PathVariable String reportId) {
|
||||||
return apiReportService.get(reportId, true);
|
return apiReportService.get(reportId, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue