-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'be' of https://github.com/JNU-econovation/Gaebaljip int…
…o test/#359
- Loading branch information
Showing
26 changed files
with
943 additions
and
240 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
35 changes: 35 additions & 0 deletions
35
...ceed/src/main/java/com/gaebaljip/exceed/member/adapter/in/CheckMemberEmailController.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.gaebaljip.exceed.member.adapter.in; | ||
|
||
import javax.validation.Valid; | ||
|
||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.ModelAttribute; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import com.gaebaljip.exceed.common.ApiResponse; | ||
import com.gaebaljip.exceed.common.ApiResponseGenerator; | ||
import com.gaebaljip.exceed.dto.request.CheckMemberRequest; | ||
import com.gaebaljip.exceed.member.application.port.in.CheckCodeUsecase; | ||
|
||
import io.swagger.v3.oas.annotations.security.SecurityRequirement; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/v1") | ||
@SecurityRequirement(name = "access-token") | ||
@Tag(name = "[회원가입]") | ||
public class CheckMemberEmailController { | ||
|
||
private final CheckCodeUsecase checkCodeUsecase; | ||
|
||
@GetMapping("/members/checked") | ||
public ApiResponse<ApiResponse.CustomBody<Void>> checkMemberEmail( | ||
@ModelAttribute @Valid CheckMemberRequest checkMemberRequest) { | ||
checkCodeUsecase.execute(checkMemberRequest); | ||
return ApiResponseGenerator.success(HttpStatus.OK); | ||
} | ||
} |
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
34 changes: 34 additions & 0 deletions
34
...ed/src/main/java/com/gaebaljip/exceed/member/adapter/in/VerifyEmailCheckedController.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.gaebaljip.exceed.member.adapter.in; | ||
|
||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import com.gaebaljip.exceed.common.ApiResponse; | ||
import com.gaebaljip.exceed.common.ApiResponseGenerator; | ||
import com.gaebaljip.exceed.member.application.port.in.VerifyEmailCheckedUsecase; | ||
|
||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.security.SecurityRequirement; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/v1") | ||
@SecurityRequirement(name = "access-token") | ||
@Tag(name = "[회원가입]") | ||
public class VerifyEmailCheckedController { | ||
|
||
private final VerifyEmailCheckedUsecase verifyEmailCheckedUsecase; | ||
|
||
@Operation(summary = "회원 가입후 이메일 인증 여부 확인", description = "회원 가입후 이메일 인증 여부 확인한다.") | ||
@GetMapping("/members/email/checked") | ||
public ApiResponse<ApiResponse.CustomBody<Boolean>> verifyEmailChecked( | ||
@RequestParam(value = "email") String email) { | ||
Boolean isChecked = verifyEmailCheckedUsecase.execute(email); | ||
return ApiResponseGenerator.success(isChecked, HttpStatus.OK); | ||
} | ||
} |
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.