public static List<String> types() {
        return Stream.of(DiscoveryTypeEnum.values())
                .map(DiscoveryTypeEnum::getType)
                .collect(Collectors.toList());
    }
discovery type enum convert list.

@return discovery type list
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/enums/DiscoveryTypeEnum.java