从零打造微前端框架:实战“汽车资讯平台”项目

150 阅读1分钟

从零打造微前端框架:实战“汽车资讯平台 项目

v: ititit111222333

User retUser = userRepository.of(user.getId().getValue());
if (ObjectUtils.isEmpty(retUser.getCreateTime())) {
    log.warn("未存在该用户,用户id 【{}】", request.getUserId());
    throw new ValidationException(ErrorCode.USER_NULL);
}

// 3.
if (!userRepository.updateBaseInfo(user)) {
    throw new InfrastructureException(ErrorCode.USER_EDIT_ERROR);
}
return userRepository.of(user.getId().getValue());