From 15ec97d2117246f420e122608db503371ce8a415 Mon Sep 17 00:00:00 2001 From: Minjae-An Date: Thu, 14 Mar 2024 22:11:06 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=A0=84=ED=99=94=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EA=B8=B0=EB=B0=98=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=A1=B4?= =?UTF-8?q?=EC=9E=AC=20=EC=97=AC=EB=B6=80=20=ED=99=95=EC=9D=B8=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20=EC=B6=94=EA=B0=80(#28)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- be/src/main/java/yeonba/be/user/repository/UserQuery.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/be/src/main/java/yeonba/be/user/repository/UserQuery.java b/be/src/main/java/yeonba/be/user/repository/UserQuery.java index 9a47f7c5..1fe7e0aa 100644 --- a/be/src/main/java/yeonba/be/user/repository/UserQuery.java +++ b/be/src/main/java/yeonba/be/user/repository/UserQuery.java @@ -23,4 +23,9 @@ public User findByEmail(String email) { return userRepository.findByEmail(email) .orElseThrow(() -> new GeneralException(UserException.USER_NOT_FOUND)); } + + public boolean isUserExist(String phoneNumber) { + + return userRepository.existsByPhoneNumber(phoneNumber); + } }