Skip to content

Commit 610cfb0

Browse files
committed
[BOOK-52] refactor: apis - TokenPair 별도 class로 분리 (#11)
1 parent 810026e commit 610cfb0

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package org.yapp.apis.auth.dto
2+
3+
data class TokenPair(
4+
val accessToken: String,
5+
val refreshToken: String
6+
)

apis/src/main/kotlin/org/yapp/apis/auth/service/AuthService.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.yapp.apis.auth.service
22

3+
import org.yapp.apis.auth.dto.TokenPair
34
import org.yapp.apis.auth.dto.UserProfileResponse
45
import org.yapp.domain.user.User
56

@@ -23,9 +24,3 @@ interface AuthService {
2324
fun getUserIdFromAccessToken(accessToken: String): Long
2425

2526
}
26-
27-
28-
data class TokenPair(
29-
val accessToken: String,
30-
val refreshToken: String
31-
)

apis/src/main/kotlin/org/yapp/apis/auth/usecase/AuthUseCase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package org.yapp.apis.auth.usecase
22

3+
import org.yapp.apis.auth.dto.TokenPair
34
import org.yapp.apis.auth.dto.UserProfileResponse
45
import org.yapp.apis.auth.service.AuthCredentials
5-
import org.yapp.apis.auth.service.TokenPair
66

77
/**
88
* Interface for authentication use cases.

apis/src/main/kotlin/org/yapp/apis/auth/usecase/AuthUseCaseImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package org.yapp.apis.auth.usecase
22

33
import org.springframework.stereotype.Service
4+
import org.yapp.apis.auth.dto.TokenPair
45
import org.yapp.apis.auth.dto.UserProfileResponse
56
import org.yapp.apis.auth.service.AuthCredentials
67
import org.yapp.apis.auth.service.AuthService
7-
import org.yapp.apis.auth.service.TokenPair
88

99
/**
1010
* Implementation of AuthUseCase that uses AuthService.

0 commit comments

Comments
 (0)