swagger展示全部时不展示禁用的
This commit is contained in:
@@ -142,6 +142,9 @@ public class MgDocumentController {
|
|||||||
List<String> swaggerResourceStrList = new LinkedList<>();
|
List<String> swaggerResourceStrList = new LinkedList<>();
|
||||||
for (LocationListVo location : locationList) {
|
for (LocationListVo location : locationList) {
|
||||||
try {
|
try {
|
||||||
|
if (Optional.ofNullable(location.getDisabled()).orElse(0) == 1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
String resourceStr = HttpRequest.get(location.getLocation())
|
String resourceStr = HttpRequest.get(location.getLocation())
|
||||||
.form(this.getGlobalParamObjMap(globalParamList, "form"))
|
.form(this.getGlobalParamObjMap(globalParamList, "form"))
|
||||||
.addHeaders(this.getGlobalParamMap(globalParamList, "header"))
|
.addHeaders(this.getGlobalParamMap(globalParamList, "header"))
|
||||||
|
|||||||
Reference in New Issue
Block a user