-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 스케줄러에서 레포를 통해 북토크들 조회하는 로직 리팩토링
- Loading branch information
Showing
3 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
import io.swagger.v3.oas.annotations.security.SecurityRequirement; | ||
import io.swagger.v3.oas.annotations.security.SecurityRequirements; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import javax.servlet.http.HttpServletRequest; | ||
import javax.validation.Valid; | ||
import lombok.RequiredArgsConstructor; | ||
import org.sophy.sophy.common.dto.ApiResponseDto; | ||
import org.sophy.sophy.controller.dto.request.DuplCheckDto; | ||
|
@@ -19,10 +21,12 @@ | |
import org.springframework.http.HttpStatus; | ||
import org.springframework.security.core.annotation.AuthenticationPrincipal; | ||
import org.springframework.security.core.userdetails.User; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import javax.servlet.http.HttpServletRequest; | ||
import javax.validation.Valid; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.ResponseStatus; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@RequestMapping("/auth") | ||
|
@@ -86,8 +90,10 @@ public ApiResponseDto<String> duplCheck(@RequestBody DuplCheckDto email) { | |
|
||
@PostMapping("/email-confirm") | ||
@Operation(summary = "이메일 인증") | ||
public ApiResponseDto<String> emailConfirm(@Parameter(example = "[email protected]") @RequestParam String email) throws Exception { | ||
return ApiResponseDto.success(SuccessStatus.CREATE_AUTHCODE_SUCCESS, emailService.sendEmail(email)); | ||
public ApiResponseDto<String> emailConfirm( | ||
@Parameter(example = "[email protected]") @RequestParam String email) throws Exception { | ||
return ApiResponseDto.success(SuccessStatus.CREATE_AUTHCODE_SUCCESS, | ||
emailService.sendEmail(email)); | ||
} | ||
|
||
@PostMapping("/withdrawal") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters