fix(接口测试): 导出按钮权限

--bug=1044011 --user=王旭 【接口测试】导出权限控制按钮未隐藏 https://www.tapd.cn/55049933/s/1548936
This commit is contained in:
WangXu10 2024-07-16 14:03:36 +08:00 committed by 刘瑞斌
parent be52233bc2
commit fdbadd5494
3 changed files with 3 additions and 2 deletions

View File

@ -160,7 +160,7 @@ public class Swagger3ExportParser implements ExportParser<ApiExportResponse> {
statusCodeInfo.put("description", responseJSONObject.optString("value"));
}
if (StringUtils.isNotBlank(responseJSONObject.optString("name"))) {
responseBody.put(responseJSONObject.optString("name"), statusCodeInfo);
responseBody.put(statusCode, statusCodeInfo);
}
}
}

View File

@ -19,7 +19,7 @@ public class TestPlanCollectionAssociateDTO implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "是否选择所有模块")
private boolean selectAllModule;
private boolean selectAllModule = false;
@Schema(description = "模块下的id集合属性", requiredMode = Schema.RequiredMode.REQUIRED)
private Map<String, ModuleSelectDTO> moduleMaps;

View File

@ -567,6 +567,7 @@
eventTag: 'exportSwagger',
},
],
permission: ['PROJECT_API_DEFINITION:READ+EXPORT'],
},
{
label: 'common.edit',