generated from GSM-MSG/MSG-Repository-Generator
-
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.
Merge pull request #42 from GSM-MSG/40-feat/signin
# 40 로그인 기능 구현
- Loading branch information
Showing
13 changed files
with
96 additions
and
8 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
8 changes: 8 additions & 0 deletions
8
bitgouel-api/src/main/kotlin/team/msg/domain/auth/exception/MisMatchPasswordException.kt
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,8 @@ | ||
package team.msg.domain.auth.exception | ||
|
||
import team.msg.domain.auth.exception.constant.AuthErrorCode | ||
import team.msg.global.error.exception.BitgouelException | ||
|
||
class MisMatchPasswordException( | ||
message: String | ||
) : BitgouelException(message, AuthErrorCode.MISMATCH_PASSWORD.status) |
8 changes: 8 additions & 0 deletions
8
bitgouel-api/src/main/kotlin/team/msg/domain/auth/exception/UnApprovedUserException.kt
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,8 @@ | ||
package team.msg.domain.auth.exception | ||
|
||
import team.msg.domain.auth.exception.constant.AuthErrorCode | ||
import team.msg.global.error.exception.BitgouelException | ||
|
||
class UnApprovedUserException( | ||
message: String | ||
) : BitgouelException(message, AuthErrorCode.UNAPPROVED_USER.status) |
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
6 changes: 6 additions & 0 deletions
6
bitgouel-api/src/main/kotlin/team/msg/domain/auth/presentation/data/request/LoginRequest.kt
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,6 @@ | ||
package team.msg.domain.auth.presentation.data.request | ||
|
||
data class LoginRequest( | ||
val email: String, | ||
val password: String | ||
) |
14 changes: 14 additions & 0 deletions
14
bitgouel-api/src/main/kotlin/team/msg/domain/auth/presentation/data/web/LoginWebRequest.kt
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,14 @@ | ||
package team.msg.domain.auth.presentation.data.web | ||
|
||
import javax.validation.constraints.Email | ||
import javax.validation.constraints.NotNull | ||
import javax.validation.constraints.Pattern | ||
|
||
data class LoginWebRequest( | ||
@field:Email | ||
@field:NotNull | ||
val email: String, | ||
|
||
@field:Pattern(regexp = "^(?=.*[A-Za-z0-9])[A-Za-z0-9!@#\\\\\$%^&*]{8,24}\$") | ||
val password: String | ||
) |
2 changes: 2 additions & 0 deletions
2
bitgouel-api/src/main/kotlin/team/msg/domain/auth/service/AuthService.kt
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,11 +1,13 @@ | ||
package team.msg.domain.auth.service | ||
|
||
import team.msg.domain.auth.presentation.data.request.* | ||
import team.msg.domain.auth.presentation.data.response.TokenResponse | ||
|
||
interface AuthService { | ||
fun studentSignUp(studentSignUpRequest: StudentSignUpRequest) | ||
fun teacherSignUp(teacherSignUpRequest: TeacherSignUpRequest) | ||
fun professorSignUp(professorSignUpRequest: ProfessorSignUpRequest) | ||
fun governmentSignUp(governmentSignUpRequest: GovernmentSignUpRequest) | ||
fun companyInstructorSignUp(companyInstructorSignUpRequest: CompanyInstructorSignUpRequest) | ||
fun login(request: LoginRequest): TokenResponse | ||
} |
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