fix(接口测试): 优化接口测试分享报告的查询方式,具体请求内容使用异步查询
优化接口测试分享报告的查询方式,具体请求内容使用异步查询
This commit is contained in:
parent
a966f01d7c
commit
1684ed5f76
|
@ -19,9 +19,9 @@ import io.metersphere.log.annotation.MsAuditLog;
|
||||||
import io.metersphere.notice.annotation.SendNotice;
|
import io.metersphere.notice.annotation.SendNotice;
|
||||||
import io.metersphere.service.ShareInfoService;
|
import io.metersphere.service.ShareInfoService;
|
||||||
import io.metersphere.service.scenario.ApiScenarioReportService;
|
import io.metersphere.service.scenario.ApiScenarioReportService;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import jakarta.annotation.Resource;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ public class ApiScenarioReportController {
|
||||||
@GetMapping("/get/{shareId}/{reportId}")
|
@GetMapping("/get/{shareId}/{reportId}")
|
||||||
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, true);
|
return apiReportService.get(reportId, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/get/detail/{reportId}")
|
@GetMapping("/get/detail/{reportId}")
|
||||||
|
|
Loading…
Reference in New Issue