public static AppAuthDO create(final AuthApplyDTO authApplyDTO) {
        return Optional.ofNullable(authApplyDTO).map(item -> {
            Timestamp currentTime = new Timestamp(System.currentTimeMillis());
            return AppAuthDO.builder()
                    .id(UUIDUtils.getInstance().generateShortUuid())
                    .userId(item.getUserId())
                    .phone(item.getPhone())
                    .extInfo(item.getExtInfo())
                    .appKey(SignUtils.generateKey())
                    .appSecret(SignUtils.generateKey())
                    .open(item.getOpen())
                    .enabled(true)
                    .namespaceId(item.getNamespaceId())
                    .dateCreated(currentTime)
                    .dateUpdated(currentTime)
                    .build();
        }).orElse(null);
    }
Build AppAuthDO object with given AuthApplyDTO object.

@param authApplyDTO {@linkplain AuthApplyDTO}
@return {@linkplain AppAuthDO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/AppAuthDO.java