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();