From 762853f9136e29cd95e153efa0e9c0538f2def95 Mon Sep 17 00:00:00 2001 From: Minjae-An Date: Wed, 27 Mar 2024 19:59:43 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9D=B8=EC=A6=9D=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=9A=94=EC=B2=AD=20dto=20=EC=9D=B4=EB=A6=84=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD,=20=EC=82=AC=EC=9A=A9=20=EC=9C=84=EC=B9=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95(#28)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/yeonba/be/login/controller/LoginController.java | 4 ++-- ...berVerifyRequest.java => UserVerificatoinCodeRequest.java} | 2 +- be/src/main/java/yeonba/be/login/service/LoginService.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename be/src/main/java/yeonba/be/login/dto/request/{UserPhoneNumberVerifyRequest.java => UserVerificatoinCodeRequest.java} (93%) diff --git a/be/src/main/java/yeonba/be/login/controller/LoginController.java b/be/src/main/java/yeonba/be/login/controller/LoginController.java index 545ab8a9..007bfbf1 100644 --- a/be/src/main/java/yeonba/be/login/controller/LoginController.java +++ b/be/src/main/java/yeonba/be/login/controller/LoginController.java @@ -13,8 +13,8 @@ import yeonba.be.login.dto.request.UserJoinRequest; import yeonba.be.login.dto.request.UserLoginRequest; import yeonba.be.login.dto.request.UserPasswordInquiryRequest; -import yeonba.be.login.dto.request.UserPhoneNumberVerifyRequest; import yeonba.be.login.dto.request.UserRefreshTokenRequest; +import yeonba.be.login.dto.request.UserVerificatoinCodeRequest; import yeonba.be.login.dto.response.UserEmailInquiryResponse; import yeonba.be.login.dto.response.UserJoinResponse; import yeonba.be.login.dto.response.UserLoginResponse; @@ -45,7 +45,7 @@ public ResponseEntity> join( @ApiResponse(responseCode = "202", description = "전화번호 인증 코드 전송 성공") @PostMapping("/users/help/email-inquiry/verification-code") public ResponseEntity> verifyPhoneNumber( - @Valid @RequestBody UserPhoneNumberVerifyRequest request) { + @Valid @RequestBody UserVerificatoinCodeRequest request) { loginService.sendVerificationCodeMessage(request); diff --git a/be/src/main/java/yeonba/be/login/dto/request/UserPhoneNumberVerifyRequest.java b/be/src/main/java/yeonba/be/login/dto/request/UserVerificatoinCodeRequest.java similarity index 93% rename from be/src/main/java/yeonba/be/login/dto/request/UserPhoneNumberVerifyRequest.java rename to be/src/main/java/yeonba/be/login/dto/request/UserVerificatoinCodeRequest.java index 4bd0da97..b13a1b32 100644 --- a/be/src/main/java/yeonba/be/login/dto/request/UserPhoneNumberVerifyRequest.java +++ b/be/src/main/java/yeonba/be/login/dto/request/UserVerificatoinCodeRequest.java @@ -8,7 +8,7 @@ @Getter @NoArgsConstructor -public class UserPhoneNumberVerifyRequest { +public class UserVerificatoinCodeRequest { @Schema( type = "string", diff --git a/be/src/main/java/yeonba/be/login/service/LoginService.java b/be/src/main/java/yeonba/be/login/service/LoginService.java index 481b9c7e..5b342f73 100644 --- a/be/src/main/java/yeonba/be/login/service/LoginService.java +++ b/be/src/main/java/yeonba/be/login/service/LoginService.java @@ -11,7 +11,7 @@ import yeonba.be.exception.UserException; import yeonba.be.login.dto.request.UserEmailInquiryRequest; import yeonba.be.login.dto.request.UserPasswordInquiryRequest; -import yeonba.be.login.dto.request.UserPhoneNumberVerifyRequest; +import yeonba.be.login.dto.request.UserVerificatoinCodeRequest; import yeonba.be.login.dto.response.UserEmailInquiryResponse; import yeonba.be.login.entity.VerificationCode; import yeonba.be.login.repository.VerificationCodeCommand; @@ -66,7 +66,7 @@ public void sendTemporaryPasswordMail(UserPasswordInquiryRequest request) { } @Transactional - public void sendVerificationCodeMessage(UserPhoneNumberVerifyRequest request) { + public void sendVerificationCodeMessage(UserVerificatoinCodeRequest request) { // 전화 번호로 사용자 조회 String phoneNumber = request.getPhoneNumber();