forked from wine-area/DMS-Backend
-
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.
- Loading branch information
Showing
718 changed files
with
774 additions
and
691 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 +5,6 @@ interface ErrorProperty { | |
fun status(): Int | ||
|
||
fun message(): String | ||
|
||
fun code(): String | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ception/AuthCodeLimitNotFoundException.kt → ...ception/AuthCodeLimitNotFoundException.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
2 changes: 1 addition & 1 deletion
2
...th/exception/AuthCodeMismatchException.kt → ...th/exception/AuthCodeMismatchException.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
2 changes: 1 addition & 1 deletion
2
...th/exception/AuthCodeNotFoundException.kt → ...th/exception/AuthCodeNotFoundException.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
2 changes: 1 addition & 1 deletion
2
...h/exception/AuthCodeOverLimitException.kt → ...h/exception/AuthCodeOverLimitException.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
2 changes: 1 addition & 1 deletion
2
...ception/EmailAlreadyCertifiedException.kt → ...ception/EmailAlreadyCertifiedException.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
2 changes: 1 addition & 1 deletion
2
.../auth/exception/EmailMismatchException.kt → .../auth/exception/EmailMismatchException.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
2 changes: 1 addition & 1 deletion
2
...th/exception/PasswordMismatchException.kt → ...th/exception/PasswordMismatchException.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
2 changes: 1 addition & 1 deletion
2
...xception/RefreshTokenNotFoundException.kt → ...xception/RefreshTokenNotFoundException.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
2 changes: 1 addition & 1 deletion
2
.../exception/UnverifiedAuthCodeException.kt → .../exception/UnverifiedAuthCodeException.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
24 changes: 13 additions & 11 deletions
24
...ns/dms/domain/auth/error/AuthErrorCode.kt → ...ain/auth/exception/error/AuthErrorCode.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,27 +1,29 @@ | ||
package team.aliens.dms.domain.auth.error | ||
package team.aliens.dms.domain.auth.exception.error | ||
|
||
import team.aliens.dms.common.error.ErrorProperty | ||
import team.aliens.dms.common.error.ErrorStatus | ||
|
||
enum class AuthErrorCode( | ||
private val status: Int, | ||
private val message: String | ||
private val message: String, | ||
private val sequence: Int | ||
) : ErrorProperty { | ||
|
||
AUTH_CODE_MISMATCH(ErrorStatus.UNAUTHORIZED, "Auth Code Mismatch"), | ||
EMAIL_MISMATCH(ErrorStatus.UNAUTHORIZED, "Email Mismatch"), | ||
PASSWORD_MISMATCH(ErrorStatus.UNAUTHORIZED, "Password Mismatch"), | ||
UNVERIFIED_AUTH_CODE(ErrorStatus.UNAUTHORIZED, "Unverified Auth Code"), | ||
AUTH_CODE_MISMATCH(ErrorStatus.UNAUTHORIZED, "Auth Code Mismatch", 1), | ||
EMAIL_MISMATCH(ErrorStatus.UNAUTHORIZED, "Email Mismatch", 2), | ||
PASSWORD_MISMATCH(ErrorStatus.UNAUTHORIZED, "Password Mismatch", 3), | ||
UNVERIFIED_AUTH_CODE(ErrorStatus.UNAUTHORIZED, "Unverified Auth Code", 4), | ||
|
||
REFRESH_TOKEN_NOT_FOUND(ErrorStatus.NOT_FOUND, "Refresh Token Not Found"), | ||
AUTH_CODE_NOT_FOUND(ErrorStatus.NOT_FOUND, "Auth Code Not Found"), | ||
AUTH_CODE_LIMIT_NOT_FOUND(ErrorStatus.NOT_FOUND, "Auth Code Limit Not Found"), | ||
REFRESH_TOKEN_NOT_FOUND(ErrorStatus.NOT_FOUND, "Refresh Token Not Found", 1), | ||
AUTH_CODE_NOT_FOUND(ErrorStatus.NOT_FOUND, "Auth Code Not Found", 2), | ||
AUTH_CODE_LIMIT_NOT_FOUND(ErrorStatus.NOT_FOUND, "Auth Code Limit Not Found", 3), | ||
|
||
EMAIL_ALREADY_CERTIFIED(ErrorStatus.CONFLICT, "Email Already Certified"), | ||
EMAIL_ALREADY_CERTIFIED(ErrorStatus.CONFLICT, "Email Already Certified", 1), | ||
|
||
AUTH_CODE_OVER_LIMITED(ErrorStatus.TOO_MANY_REQUEST, "Auth Code Over Limited") | ||
AUTH_CODE_OVER_LIMITED(ErrorStatus.TOO_MANY_REQUEST, "Auth Code Over Limited", 1) | ||
; | ||
|
||
override fun status(): Int = status | ||
override fun message(): String = message | ||
override fun code(): String = "AUTH-$status-$sequence" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
dms-core/src/main/kotlin/team/aliens/dms/domain/auth/spi/CommandRefreshTokenPort.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,7 @@ | ||
package team.aliens.dms.domain.auth.spi | ||
|
||
import team.aliens.dms.domain.auth.model.RefreshToken | ||
|
||
interface CommandRefreshTokenPort { | ||
fun save(refreshToken: RefreshToken): RefreshToken | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...s/dms/domain/auth/spi/RefreshTokenPort.kt → ...s/dms/domain/auth/spi/RefreshTokenPort.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,4 +1,5 @@ | ||
package team.aliens.dms.domain.auth.spi | ||
|
||
interface RefreshTokenPort : | ||
QueryRefreshTokenPort | ||
QueryRefreshTokenPort, | ||
CommandRefreshTokenPort |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...file/exception/BadExcelFormatException.kt → ...file/exception/BadExcelFormatException.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
2 changes: 1 addition & 1 deletion
2
...e/exception/FileIOInterruptedException.kt → ...e/exception/FileIOInterruptedException.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
2 changes: 1 addition & 1 deletion
2
...xception/FileInvalidExtensionException.kt → ...xception/FileInvalidExtensionException.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
12 changes: 7 additions & 5 deletions
12
...ns/dms/domain/file/error/FileErrorCode.kt → ...ain/file/exception/error/FileErrorCode.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,18 +1,20 @@ | ||
package team.aliens.dms.domain.file.error | ||
package team.aliens.dms.domain.file.exception.error | ||
|
||
import team.aliens.dms.common.error.ErrorProperty | ||
import team.aliens.dms.common.error.ErrorStatus | ||
|
||
enum class FileErrorCode( | ||
private val status: Int, | ||
private val message: String | ||
private val message: String, | ||
private val sequence: Int | ||
) : ErrorProperty { | ||
|
||
INVALID_EXTENSION(ErrorStatus.BAD_REQUEST, "Allowed Extension : jpg(JPG), jpeg(JPEG), png(PNG), heic(HEIC)"), | ||
BAD_EXCEL_FORMAT(ErrorStatus.BAD_REQUEST, "Bad Excel Format"), | ||
IO_INTERRUPTED(ErrorStatus.INTERNAL_SERVER_ERROR, "Interrupted File IO") | ||
INVALID_EXTENSION(ErrorStatus.BAD_REQUEST, "Allowed Extension : jpg(JPG), jpeg(JPEG), png(PNG), heic(HEIC)", 1), | ||
BAD_EXCEL_FORMAT(ErrorStatus.BAD_REQUEST, "Bad Excel Format", 2), | ||
IO_INTERRUPTED(ErrorStatus.INTERNAL_SERVER_ERROR, "Interrupted File IO", 1) | ||
; | ||
|
||
override fun status(): Int = status | ||
override fun message(): String = message | ||
override fun code(): String = "FILE-$status-$sequence" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...iens/dms/domain/file/spi/WriteFilePort.kt → ...iens/dms/domain/file/spi/WriteFilePort.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...exception/ManagerInfoMismatchException.kt → ...exception/ManagerInfoMismatchException.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
2 changes: 1 addition & 1 deletion
2
...ger/exception/ManagerNotFoundException.kt → ...ger/exception/ManagerNotFoundException.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
10 changes: 6 additions & 4 deletions
10
.../domain/manager/error/ManagerErrorCode.kt → ...nager/exception/error/ManagerErrorCode.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,18 +1,20 @@ | ||
package team.aliens.dms.domain.manager.error | ||
package team.aliens.dms.domain.manager.exception.error | ||
|
||
import team.aliens.dms.common.error.ErrorProperty | ||
import team.aliens.dms.common.error.ErrorStatus | ||
|
||
enum class ManagerErrorCode( | ||
private val status: Int, | ||
private val message: String | ||
private val message: String, | ||
private val sequence: Int | ||
) : ErrorProperty { | ||
|
||
MANAGER_INFO_NOT_MATCHED(ErrorStatus.UNAUTHORIZED, "Manager Info Not Matched"), | ||
MANAGER_INFO_NOT_MATCHED(ErrorStatus.UNAUTHORIZED, "Manager Info Not Matched", 1), | ||
|
||
MANAGER_NOT_FOUND(ErrorStatus.NOT_FOUND, "Manager Not Found") | ||
MANAGER_NOT_FOUND(ErrorStatus.NOT_FOUND, "Manager Not Found", 1) | ||
; | ||
|
||
override fun status(): Int = status | ||
override fun message(): String = message | ||
override fun code(): String = "MANAGER-$status-$sequence" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../notice/exception/IsNotWriterException.kt → .../notice/exception/IsNotWriterException.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
2 changes: 1 addition & 1 deletion
2
...tice/exception/NoticeNotFoundException.kt → ...tice/exception/NoticeNotFoundException.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
10 changes: 6 additions & 4 deletions
10
...ms/domain/notice/error/NoticeErrorCode.kt → ...notice/exception/error/NoticeErrorCode.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,18 +1,20 @@ | ||
package team.aliens.dms.domain.notice.error | ||
package team.aliens.dms.domain.notice.exception.error | ||
|
||
import team.aliens.dms.common.error.ErrorProperty | ||
import team.aliens.dms.common.error.ErrorStatus | ||
|
||
enum class NoticeErrorCode( | ||
private val status: Int, | ||
private val message: String | ||
private val message: String, | ||
private val sequence: Int | ||
) : ErrorProperty { | ||
|
||
IS_NOT_WRITER(ErrorStatus.UNAUTHORIZED, "Only Writer Can Delete"), | ||
IS_NOT_WRITER(ErrorStatus.UNAUTHORIZED, "Only Writer Can Delete", 1), | ||
|
||
NOTICE_NOT_FOUND(ErrorStatus.NOT_FOUND, "Notice Not Found") | ||
NOTICE_NOT_FOUND(ErrorStatus.NOT_FOUND, "Notice Not Found", 1) | ||
; | ||
|
||
override fun status(): Int = status | ||
override fun message(): String = message | ||
override fun code(): String = "NOTICE-$status-$sequence" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ption/InvalidPointFilterRangeException.kt → ...ption/InvalidPointFilterRangeException.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
2 changes: 1 addition & 1 deletion
2
...tion/PointHistoryCanNotCancelException.kt → ...tion/PointHistoryCanNotCancelException.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
Oops, something went wrong.