From 06bf402b1cb71ccc1c40fb82b90d8183ca4e0f3e Mon Sep 17 00:00:00 2001 From: Junho Yu <95111999+ryuwon2407@users.noreply.github.com> Date: Fri, 22 Nov 2024 02:28:21 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Style[#9]:=20=EC=BD=94=EB=93=9C?= =?UTF-8?q?=20=ED=8F=AC=EB=A9=A7=ED=8C=85=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../swipo/domain/user/controller/UserController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/groom/swipo/domain/user/controller/UserController.java b/src/main/java/com/groom/swipo/domain/user/controller/UserController.java index 87bd671..8fdcd62 100644 --- a/src/main/java/com/groom/swipo/domain/user/controller/UserController.java +++ b/src/main/java/com/groom/swipo/domain/user/controller/UserController.java @@ -89,10 +89,10 @@ public ResTemplate refreshAccessToken(@RequestBody TokenRe @ApiResponse(responseCode = "500", description = "서버 오류") } ) - public ResTemplate getPhoneCheck(@RequestBody PhoneCheckRequest request) { + public ResTemplate getPhoneCheck(@RequestBody PhoneCheckRequest request) { LocalDateTime sentAt = LocalDateTime.now(); smsService.sendVerificationMessage(request.phone(), sentAt); // 인스턴스 메서드 호출 - return new ResTemplate<>(HttpStatus.OK, "송신 완료", ""); + return new ResTemplate<>(HttpStatus.OK, "송신 완료"); } @PostMapping("/phone-verification") @@ -110,7 +110,7 @@ public ResTemplate getPhoneCheck(@RequestBody PhoneCheckRequest request) public ResTemplate verificationByCode(@RequestBody PhoneVerificationRequest request) { LocalDateTime verifiedAt = LocalDateTime.now(); smsService.verifyCode(request.phone(), request.code(), verifiedAt); - return new ResTemplate<>(HttpStatus.OK, "인증 완료", null); + return new ResTemplate<>(HttpStatus.OK, "인증 완료"); } @PostMapping("/register") @@ -143,7 +143,7 @@ public ResTemplate getUserInfoToRegister(@RequestBody Regi ) public ResTemplate checkPassword(@RequestBody PwdRequest request, Principal principal) { userService.checkPassword(request, principal); - return new ResTemplate<>(HttpStatus.OK, "비밀번호 일치", null); + return new ResTemplate<>(HttpStatus.OK, "비밀번호 일치"); } // 비밀번호 변경 @@ -161,7 +161,7 @@ public ResTemplate checkPassword(@RequestBody PwdRequest request, Principa ) public ResTemplate editPassword(@RequestBody PwdRequest request, Principal principal) { userService.editPassword(request, principal); - return new ResTemplate<>(HttpStatus.OK, "비밀번호 변경완료", null); + return new ResTemplate<>(HttpStatus.OK, "비밀번호 변경완료"); } // 회원탈퇴 @DeleteMapping("/delete") @@ -177,7 +177,7 @@ public ResTemplate editPassword(@RequestBody PwdRequest request, Principal ) public ResTemplate deleteUser(Principal principal) { userService.deleteUser(principal); - return new ResTemplate<>(HttpStatus.OK, "탈퇴완료", null); + return new ResTemplate<>(HttpStatus.OK, "탈퇴완료"); }