swagger展示全部时不展示禁用的

This commit is contained in:
暮光:城中城
2019-10-27 11:39:12 +08:00
parent 53eee3a956
commit 1537a67a50

View File

@@ -142,6 +142,9 @@ public class MgDocumentController {
List<String> swaggerResourceStrList = new LinkedList<>();
for (LocationListVo location : locationList) {
try {
if (Optional.ofNullable(location.getDisabled()).orElse(0) == 1) {
continue;
}
String resourceStr = HttpRequest.get(location.getLocation())
.form(this.getGlobalParamObjMap(globalParamList, "form"))
.addHeaders(this.getGlobalParamMap(globalParamList, "header"))