-
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 #144 from Nexters/feature/140
common ํจํค์ง Global ํจํค์ง๋ก ๋ถ๋ฆฌ ๋ฐ ์์ธ์ฒ๋ฆฌ ํ๋ก์ฐ ์ฌ์ค๊ณ
- Loading branch information
Showing
226 changed files
with
1,154 additions
and
1,077 deletions.
There are no files selected for viewing
9 changes: 0 additions & 9 deletions
9
src/main/java/com/nexters/keyme/auth/application/AuthService.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/java/com/nexters/keyme/clienttest/application/ClientTestService.java
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
src/main/java/com/nexters/keyme/clienttest/presentation/controller/ClientTestController.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/main/java/com/nexters/keyme/common/exceptions/AccessDeniedException.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/main/java/com/nexters/keyme/common/exceptions/AuthenticationFailedException.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/main/java/com/nexters/keyme/common/exceptions/InvalidRequestException.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/main/java/com/nexters/keyme/common/exceptions/ResourceAlreadyExistsException.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/main/java/com/nexters/keyme/common/exceptions/ResourceNotFoundException.java
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
src/main/java/com/nexters/keyme/common/exceptions/errorcode/ErrorCode.java
This file was deleted.
Oops, something went wrong.
65 changes: 0 additions & 65 deletions
65
src/main/java/com/nexters/keyme/common/exceptions/handler/GlobalExceptionHandler.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/java/com/nexters/keyme/domain/auth/application/AuthService.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,9 @@ | ||
package com.nexters.keyme.domain.auth.application; | ||
|
||
|
||
import com.nexters.keyme.domain.auth.presentation.dto.request.LoginRequest; | ||
import com.nexters.keyme.domain.member.presentation.dto.response.MemberWithTokenResponse; | ||
|
||
public interface AuthService { | ||
MemberWithTokenResponse getMemberWithToken(LoginRequest request); | ||
} |
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
4 changes: 2 additions & 2 deletions
4
...keyme/auth/domain/client/AppleClient.java โ ...omain/auth/domain/client/AppleClient.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
4 changes: 2 additions & 2 deletions
4
...keyme/auth/domain/client/KakaoClient.java โ ...omain/auth/domain/client/KakaoClient.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
10 changes: 10 additions & 0 deletions
10
src/main/java/com/nexters/keyme/domain/auth/domain/exceptions/InvalidAppleKeyException.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,10 @@ | ||
package com.nexters.keyme.domain.auth.domain.exceptions; | ||
|
||
import com.nexters.keyme.domain.auth.domain.exceptions.code.AuthErrorCode; | ||
import com.nexters.keyme.global.exceptions.KeymeBadRequestException; | ||
|
||
public class InvalidAppleKeyException extends KeymeBadRequestException { | ||
public InvalidAppleKeyException() { | ||
super(AuthErrorCode.INVALID_APPLE_KEY.getMessage(), AuthErrorCode.INVALID_APPLE_KEY.getCode()); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...main/java/com/nexters/keyme/domain/auth/domain/exceptions/InvalidAppleTokenException.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,11 @@ | ||
package com.nexters.keyme.domain.auth.domain.exceptions; | ||
|
||
import com.nexters.keyme.domain.auth.domain.exceptions.code.AuthErrorCode; | ||
import com.nexters.keyme.global.exceptions.KeymeBadRequestException; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public class InvalidAppleTokenException extends KeymeBadRequestException { | ||
public InvalidAppleTokenException() { | ||
super(AuthErrorCode.INVALID_APPLE_TOKEN.getMessage(), AuthErrorCode.INVALID_APPLE_TOKEN.getCode()); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/nexters/keyme/domain/auth/domain/exceptions/code/AuthErrorCode.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,15 @@ | ||
package com.nexters.keyme.domain.auth.domain.exceptions.code; | ||
|
||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public enum AuthErrorCode { | ||
INVALID_APPLE_TOKEN(400, "์๋ชป๋ IdentityToken ์ ๋๋ค."), | ||
INVALID_APPLE_KEY(400, "IdentityToken ๊ฒ์ฆ์ ์คํจํ์์ต๋๋ค."); | ||
|
||
private final int code; | ||
private final String message; | ||
} |
Oops, something went wrong.