fix(接口测试): 修复分享报告打开失败的缺陷

--bug=1027158 --user=王孝刚 【接口测试】报告-接口用例-集合报告-分享-打开失败
https://www.tapd.cn/55049933/s/1382976
This commit is contained in:
wxg0103 2023-06-19 10:07:46 +08:00 committed by 刘瑞斌
parent 0873b444c7
commit cee01f2a0c
1 changed files with 0 additions and 3 deletions

View File

@ -37,20 +37,17 @@ public class ApiScenarioReportController {
private ShareInfoService shareInfoService;
@GetMapping("/get/{reportId}")
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_READ)
public ApiScenarioReportResult get(@PathVariable String reportId) {
return apiReportService.get(reportId, false);
}
@GetMapping("/get/{shareId}/{reportId}")
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_READ)
public ApiScenarioReportResult get(@PathVariable String shareId, @PathVariable String reportId) {
shareInfoService.validateExpired(shareId);
return apiReportService.get(reportId, false);
}
@GetMapping("/get/detail/{reportId}")
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_READ)
public ApiScenarioReportResult getAll(@PathVariable String reportId) {
return apiReportService.get(reportId, true);
}