public static ResourceInfo buildResourceInfo(final ResourceVO resourceVO) {
            return Optional.ofNullable(resourceVO).map(item -> {
                ResourceInfo resourceInfo = ResourceInfo.builder()
                        .id(item.getId())
                        .title(item.getTitle())
                        .name(item.getName())
                        .parentId(item.getParentId())
                        .isLeaf(item.getIsLeaf())
                        .build();
                if (item.getIsLeaf().equals(Boolean.FALSE)) {
                    resourceInfo.setChildren(new ArrayList<>());
                }
                return resourceInfo;
            }).orElse(null);
        }
build resource info.

@param resourceVO {@linkplain ResourceVO}
@return {@linkplain ResourceInfo}
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/RoleEditVO.java