Skip to content

Commit

Permalink
refactor: 인증 코드 요청 dto 이름 변경, 사용 위치 수정(#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minjae-An committed Mar 27, 2024
1 parent 2d38e0d commit 762853f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -45,7 +45,7 @@ public ResponseEntity<CustomResponse<UserJoinResponse>> join(
@ApiResponse(responseCode = "202", description = "전화번호 인증 코드 전송 성공")
@PostMapping("/users/help/email-inquiry/verification-code")
public ResponseEntity<CustomResponse<Void>> verifyPhoneNumber(
@Valid @RequestBody UserPhoneNumberVerifyRequest request) {
@Valid @RequestBody UserVerificatoinCodeRequest request) {

loginService.sendVerificationCodeMessage(request);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@Getter
@NoArgsConstructor
public class UserPhoneNumberVerifyRequest {
public class UserVerificatoinCodeRequest {

@Schema(
type = "string",
Expand Down
4 changes: 2 additions & 2 deletions be/src/main/java/yeonba/be/login/service/LoginService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -66,7 +66,7 @@ public void sendTemporaryPasswordMail(UserPasswordInquiryRequest request) {
}

@Transactional
public void sendVerificationCodeMessage(UserPhoneNumberVerifyRequest request) {
public void sendVerificationCodeMessage(UserVerificatoinCodeRequest request) {

// 전화 번호로 사용자 조회
String phoneNumber = request.getPhoneNumber();
Expand Down

0 comments on commit 762853f

Please sign in to comment.