We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Mapper @RequiredArgsConstructor public class UserOauthSignMapper { ... /** * κΈ°μ‘΄ κ³μ μ΄ μ‘΄μ¬νλ©΄ Oauth κ³μ μ μμ±νμ¬ μ°λνκ³ , μ‘΄μ¬νμ§ μμΌλ©΄ μλ‘μ΄ κ³μ μ μμ±νλ€. * * @param request {@link SignUpReq.OauthInfo} */ @Transactional public User saveUser(SignUpReq.OauthInfo request, Pair<Boolean, String> isSignUpUser, Provider provider, String oauthId) { User user; if (isSignUpUser.getLeft().equals(Boolean.TRUE)) { user = userService.readUserByUsername(isSignUpUser.getRight()) .orElseThrow(() -> new UserErrorException(UserErrorCode.NOT_FOUND)); Oauth.of(provider, oauthId, user); } else { user = User.builder() .username(request.username()) .name(request.name()) .phone(request.phone()) .role(Role.USER) .profileVisibility(ProfileVisibility.PUBLIC).build(); userService.createUser(user); Oauth.of(provider, oauthId, user); } return user; } }
OauthService.save()
User
List<Oauth>
The text was updated successfully, but these errors were encountered:
psychology50
No branches or pull requests
λ²κ·Έ λ΄μ©
λ²κ·Έ μμΉ
OauthService.save()
λ ν΄μ£Όμ§ μκΈ° λλ¬Έμ΄λΌκ³ μΆμΈ‘μ¬ν
ν μΌ
User
entityμList<Oauth>
λ₯Ό κ΄λ¦¬νμ¬ μ°κ΄κ΄κ³ λμ°λ―Έ λ©μλλ₯Ό νΈμΆνλλ‘ μμ The text was updated successfully, but these errors were encountered: