Skip to content

Commit

Permalink
๐ŸŽจ Style[#9]: ์ฝ”๋“œ ํฌ๋ฉงํŒ… ๋ณ€๊ฒฝ
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuwon2407 committed Nov 21, 2024
1 parent 6fdc20b commit 06bf402
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ public ResTemplate<TokenRefreshResponse> refreshAccessToken(@RequestBody TokenRe
@ApiResponse(responseCode = "500", description = "์„œ๋ฒ„ ์˜ค๋ฅ˜")
}
)
public ResTemplate<String> getPhoneCheck(@RequestBody PhoneCheckRequest request) {
public ResTemplate<Void> 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")
Expand All @@ -110,7 +110,7 @@ public ResTemplate<String> getPhoneCheck(@RequestBody PhoneCheckRequest request)
public ResTemplate<Void> 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")
Expand Down Expand Up @@ -143,7 +143,7 @@ public ResTemplate<RegisterUserResponse> getUserInfoToRegister(@RequestBody Regi
)
public ResTemplate<Void> checkPassword(@RequestBody PwdRequest request, Principal principal) {
userService.checkPassword(request, principal);
return new ResTemplate<>(HttpStatus.OK, "๋น„๋ฐ€๋ฒˆํ˜ธ ์ผ์น˜", null);
return new ResTemplate<>(HttpStatus.OK, "๋น„๋ฐ€๋ฒˆํ˜ธ ์ผ์น˜");
}

// ๋น„๋ฐ€๋ฒˆํ˜ธ ๋ณ€๊ฒฝ
Expand All @@ -161,7 +161,7 @@ public ResTemplate<Void> checkPassword(@RequestBody PwdRequest request, Principa
)
public ResTemplate<Void> editPassword(@RequestBody PwdRequest request, Principal principal) {
userService.editPassword(request, principal);
return new ResTemplate<>(HttpStatus.OK, "๋น„๋ฐ€๋ฒˆํ˜ธ ๋ณ€๊ฒฝ์™„๋ฃŒ", null);
return new ResTemplate<>(HttpStatus.OK, "๋น„๋ฐ€๋ฒˆํ˜ธ ๋ณ€๊ฒฝ์™„๋ฃŒ");
}
// ํšŒ์›ํƒˆํ‡ด
@DeleteMapping("/delete")
Expand All @@ -177,7 +177,7 @@ public ResTemplate<Void> editPassword(@RequestBody PwdRequest request, Principal
)
public ResTemplate<Void> deleteUser(Principal principal) {
userService.deleteUser(principal);
return new ResTemplate<>(HttpStatus.OK, "ํƒˆํ‡ด์™„๋ฃŒ", null);
return new ResTemplate<>(HttpStatus.OK, "ํƒˆํ‡ด์™„๋ฃŒ");
}


Expand Down

0 comments on commit 06bf402

Please sign in to comment.