fix(接口测试): 导出按钮权限
--bug=1044011 --user=王旭 【接口测试】导出权限控制按钮未隐藏 https://www.tapd.cn/55049933/s/1548936
This commit is contained in:
parent
be52233bc2
commit
fdbadd5494
|
@ -160,7 +160,7 @@ public class Swagger3ExportParser implements ExportParser<ApiExportResponse> {
|
||||||
statusCodeInfo.put("description", responseJSONObject.optString("value"));
|
statusCodeInfo.put("description", responseJSONObject.optString("value"));
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(responseJSONObject.optString("name"))) {
|
if (StringUtils.isNotBlank(responseJSONObject.optString("name"))) {
|
||||||
responseBody.put(responseJSONObject.optString("name"), statusCodeInfo);
|
responseBody.put(statusCode, statusCodeInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class TestPlanCollectionAssociateDTO implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Schema(description = "是否选择所有模块")
|
@Schema(description = "是否选择所有模块")
|
||||||
private boolean selectAllModule;
|
private boolean selectAllModule = false;
|
||||||
|
|
||||||
@Schema(description = "模块下的id集合属性", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "模块下的id集合属性", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private Map<String, ModuleSelectDTO> moduleMaps;
|
private Map<String, ModuleSelectDTO> moduleMaps;
|
||||||
|
|
|
@ -567,6 +567,7 @@
|
||||||
eventTag: 'exportSwagger',
|
eventTag: 'exportSwagger',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
permission: ['PROJECT_API_DEFINITION:READ+EXPORT'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'common.edit',
|
label: 'common.edit',
|
||||||
|
|
Loading…
Reference in New Issue