private List<ResourceDO> prepareChildrenResource(final String parentId, final String pluginName) {
        return Stream.of(new AbstractMap.SimpleEntry<>(PLUGIN_SELECTOR_ADD, PLUGIN_TYPE_SELECTOR_ADD),
                        new AbstractMap.SimpleEntry<>(PLUGIN_SELECTOR_QUERY, PLUGIN_TYPE_SELECTOR_QUERY),
                        new AbstractMap.SimpleEntry<>(PLUGIN_SELECTOR_EDIT, PLUGIN_TYPE_SELECTOR_EDIT),
                        new AbstractMap.SimpleEntry<>(PLUGIN_SELECTOR_DELETE, PLUGIN_TYPE_SELECTOR_DELETE),
                        new AbstractMap.SimpleEntry<>(PLUGIN_RULE_ADD, PLUGIN_TYPE_RULE_ADD),
                        new AbstractMap.SimpleEntry<>(PLUGIN_RULE_QUERY, PLUGIN_TYPE_RULE_QUERY),
                        new AbstractMap.SimpleEntry<>(PLUGIN_RULE_EDIT, PLUGIN_TYPE_RULE_EDIT),
                        new AbstractMap.SimpleEntry<>(PLUGIN_RULE_DELETE, PLUGIN_TYPE_RULE_DELETE),
                        new AbstractMap.SimpleEntry<>(PLUGIN_SYNCHRONIZE, PLUGIN_TYPE_SYNCHRONIZE))
                .map(simpleEntry -> ResourceDO.buildResourceDO(ResourceDTO.builder()
                        .parentId(parentId)
                        .name(StringUtils.EMPTY)
                        .title(simpleEntry.getKey())
                        .url(StringUtils.EMPTY)
                        .component(StringUtils.EMPTY)
                        .resourceType(AdminResourceEnum.THREE_MENU.getCode())
                        .sort(0)
                        .icon(StringUtils.EMPTY)
                        .isLeaf(true)
                        .isRoute(ROUTE)
                        .perms("plugin:" + pluginName + simpleEntry.getValue())
                        .status(STATUS)
                        .build())).collect(Collectors.toList());

    }
insert resource perms.

@param parentId  parent id
@param pluginName plugin name
@return list of {@linkplain ResourceDO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/spring/ResourcePermissionDataSourceLoader.java