-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feat: Event 기능 추가
- Loading branch information
Showing
27 changed files
with
468 additions
and
283 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
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
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
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
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
53 changes: 28 additions & 25 deletions
53
nw/src/main/java/lab/cherry/nw/controller/EmailController.java
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 |
---|---|---|
@@ -1,35 +1,38 @@ | ||
package lab.cherry.nw.controller; | ||
// package lab.cherry.nw.controller; | ||
|
||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RestController; | ||
import lab.cherry.nw.service.EmailService; | ||
import lombok.RequiredArgsConstructor; | ||
// import org.springframework.web.bind.annotation.PostMapping; | ||
// import org.springframework.web.bind.annotation.RequestMapping; | ||
// import org.springframework.web.bind.annotation.RequestParam; | ||
// import org.springframework.web.bind.annotation.RestController; | ||
// import io.swagger.v3.oas.annotations.Operation; | ||
// import io.swagger.v3.oas.annotations.tags.Tag; | ||
// import lab.cherry.nw.service.EmailService; | ||
// import lombok.RequiredArgsConstructor; | ||
|
||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/api/v1/user") | ||
public class EmailController{ | ||
// @RestController | ||
// @RequiredArgsConstructor | ||
// @RequestMapping("/api/v1/user") | ||
// @Tag(name = "Authenticate", description = "Authenticate API Document") | ||
// public class EmailController{ | ||
|
||
private final EmailService emailService; | ||
// private final EmailService emailService; | ||
|
||
// @PostMapping("/mail/send") | ||
// @Operation(summary = "인증코드 발송", description = "인증코드를 발송합니다.") | ||
// public String emailSend(@RequestParam String email) throws Exception { | ||
|
||
// String confirm = emailService.sendSimpleMessage(email); | ||
|
||
@PostMapping("/mail/send") | ||
public String emailSend(@RequestParam String email) throws Exception { | ||
// return confirm; | ||
// } | ||
|
||
String confirm = emailService.sendSimpleMessage(email); | ||
// @PostMapping("/mail/check") | ||
// @Operation(summary = "인증코드 확인", description = "인증코드를 확인합니다.") | ||
// public Boolean emailAuth(@RequestParam String email, String code) { | ||
|
||
return confirm; | ||
} | ||
// Boolean check = emailService.emailCheck(email,code); | ||
// return check; | ||
// } | ||
|
||
@PostMapping("/mail/check") | ||
public Boolean emailAuth(@RequestParam String email, String code) { | ||
|
||
Boolean check = emailService.emailCheck(email,code); | ||
return check; | ||
} | ||
|
||
} | ||
// } | ||
|
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
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
Oops, something went wrong.