public static ResourceDO buildResourceDO(final CreateResourceDTO createResourceDTO) {
        return Optional.ofNullable(createResourceDTO).map(item -> {
            Timestamp currentTime = new Timestamp(System.currentTimeMillis());
            ResourceDO resourceDO = ResourceDO.builder()
                .parentId(item.getParentId())
                .title(item.getTitle())
                .name(item.getName())
                .url(item.getUrl())
                .component(item.getComponent())
                .resourceType(item.getResourceType())
                .sort(item.getSort())
                .icon(item.getIcon())
                .isLeaf(item.getIsLeaf())
                .isRoute(item.getIsRoute())
                .perms(item.getPerms())
                .status(item.getStatus())
                .id(UUIDUtils.getInstance().generateShortUuid())
                .dateCreated(currentTime)
                .build();
            return resourceDO;
        }).orElse(null);
    }
build ResourceDO.

@param createResourceDTO {@linkplain CreateResourceDTO}
@return {@linkplain ResourceDO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/ResourceDO.java