public static DashboardUserDO buildDashboardUserDO(final DashboardUserDTO dashboardUserDTO) {
        return Optional.ofNullable(dashboardUserDTO).map(item -> {
            Timestamp currentTime = new Timestamp(System.currentTimeMillis());
            DashboardUserDO dashboardUserDO = DashboardUserDO.builder()
                .userName(item.getUserName())
                .password(item.getPassword())
                .role(item.getRole())
                .roles(item.getRoles())
                .dateUpdated(currentTime)
                .build();
            if (StringUtils.isEmpty(item.getId())) {
                dashboardUserDO.setId(UUIDUtils.getInstance().generateShortUuid());
                dashboardUserDO.setEnabled(true);
                dashboardUserDO.setDateCreated(currentTime);
            } else {
                dashboardUserDO.setId(item.getId());
                dashboardUserDO.setEnabled(item.getEnabled());
            }
            return dashboardUserDO;
        }).orElse(null);
    }
build dashboardUserDO.

@param dashboardUserDTO {@linkplain DashboardUserDTO}
@return {@linkplain DashboardUserDO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/DashboardUserDO.java