fix(接口测试): 修复接口Swagger url导入问题

--bug=1044196 --user=王旭 【接口测试】接口定义-导入接口-Swagger url导入失败(特定URL) https://www.tapd.cn/55049933/s/1552349
This commit is contained in:
WangXu10 2024-07-22 17:24:07 +08:00 committed by 刘瑞斌
parent cbd2f91fa1
commit 12a2a8eaba
2 changed files with 2 additions and 1 deletions

View File

@ -310,6 +310,7 @@ public class ApiDefinitionController {
}
@PostMapping(value = "/export/{type}")
@Operation(summary = "接口测试-接口管理-导出接口定义")
@RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_EXPORT)
public ApiExportResponse export(@RequestBody ApiDefinitionBatchRequest request, @PathVariable String type) {
return apiDefinitionExportService.export(request, type, SessionUtils.getUserId());

View File

@ -13,7 +13,7 @@ public class ModuleDTO implements Serializable {
@Schema(description = "模块", allowableValues = {"workstation", "testPlan", "bugManagement", "caseManagement", "apiTest", "uiTest", "loadTest"})
private String module;
@Schema(description = "是否启用", allowableValues = {"true", "false"})
@Schema(description = "是否启用", type = "boolean")
private Boolean moduleEnable;
public ModuleDTO(String module, Boolean moduleEnable) {