From 6496395f258657a78b930eaaf27dd12c68d17917 Mon Sep 17 00:00:00 2001 From: choidongkuen Date: Tue, 10 Oct 2023 21:52:34 +0900 Subject: [PATCH] =?UTF-8?q?REFACTOR=20:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=9D=91=EB=8B=B5=20=EA=B5=AC?= =?UTF-8?q?=EC=A1=B0=20=EB=B3=80=EA=B2=BD=20-=20phoneNumber=20=EB=B0=98?= =?UTF-8?q?=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../howmuch/dto/user/login/UserOauthLoginResponseDto.java | 2 +- .../com/example/howmuch/service/user/KakaoOauthService.java | 2 +- .../java/com/example/howmuch/service/user/OauthService.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/example/howmuch/dto/user/login/UserOauthLoginResponseDto.java b/src/main/java/com/example/howmuch/dto/user/login/UserOauthLoginResponseDto.java index d53ebb4..d98f48a 100644 --- a/src/main/java/com/example/howmuch/dto/user/login/UserOauthLoginResponseDto.java +++ b/src/main/java/com/example/howmuch/dto/user/login/UserOauthLoginResponseDto.java @@ -17,5 +17,5 @@ public class UserOauthLoginResponseDto { private String refreshToken; private String expiredTime; private String roleType; - private Boolean phoneExisted; + private String phoneNumber; } diff --git a/src/main/java/com/example/howmuch/service/user/KakaoOauthService.java b/src/main/java/com/example/howmuch/service/user/KakaoOauthService.java index 3266749..0a03935 100644 --- a/src/main/java/com/example/howmuch/service/user/KakaoOauthService.java +++ b/src/main/java/com/example/howmuch/service/user/KakaoOauthService.java @@ -62,7 +62,7 @@ private UserOauthLoginResponseDto processKakaoToken(User user) { .expiredTime(expireTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))) .refreshToken(refreshToken.getTokenValue()) .roleType(user.getRoleType().name()) - .phoneExisted(user.getPhoneNumber() != null) + .phoneNumber(user.getPhoneNumber()) .build(); } diff --git a/src/main/java/com/example/howmuch/service/user/OauthService.java b/src/main/java/com/example/howmuch/service/user/OauthService.java index 01f1d4d..fff3107 100644 --- a/src/main/java/com/example/howmuch/service/user/OauthService.java +++ b/src/main/java/com/example/howmuch/service/user/OauthService.java @@ -149,7 +149,7 @@ private UserOauthLoginResponseDto getOauthLoginResult(User user) { .expiredTime(expireTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))) // 만료 Local Date Time .refreshToken(refreshToken.getTokenValue()) .roleType(user.getRoleType().name()) - .phoneExisted(user.getPhoneNumber() != null) + .phoneNumber(user.getPhoneNumber()) .build(); }