-
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.
Browse files
Browse the repository at this point in the history
#5: 카카오 및 키미 로그인 API 설정
- Loading branch information
Showing
45 changed files
with
553 additions
and
123 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
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
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
13 changes: 0 additions & 13 deletions
13
data/src/main/java/com/keyme/data/remote/datasource/SampleDataSource.kt
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
data/src/main/java/com/keyme/data/remote/datasource/SignInDataSource.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,21 @@ | ||
package com.keyme.data.remote.datasource | ||
|
||
import com.keyme.data.remote.api.KeymeApi | ||
import com.keyme.domain.entity.request.SignInRequest | ||
import com.keyme.domain.entity.response.SignInResponse | ||
import javax.inject.Inject | ||
|
||
class SignInDataSource @Inject constructor( | ||
private val keymeApi: KeymeApi, | ||
) { | ||
suspend fun signInWithKakao( | ||
token: String, | ||
): SignInResponse { | ||
return keymeApi.signInWithKakao( | ||
SignInRequest( | ||
oauthType = "KAKAO", | ||
token = token, | ||
), | ||
) | ||
} | ||
} |
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
15 changes: 0 additions & 15 deletions
15
data/src/main/java/com/keyme/data/remote/repositoryimpl/SampleRepositoryImpl.kt
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
data/src/main/java/com/keyme/data/remote/repositoryimpl/SignInRepositoryImpl.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,19 @@ | ||
package com.keyme.data.remote.repositoryimpl | ||
|
||
import com.keyme.data.remote.datasource.SignInDataSource | ||
import com.keyme.domain.entity.response.SignInResponse | ||
import com.keyme.domain.repository.SignInRepository | ||
import javax.inject.Inject | ||
|
||
class SignInRepositoryImpl @Inject constructor( | ||
private val signInDataSource: SignInDataSource, | ||
) : SignInRepository { | ||
|
||
override suspend fun signInWithKakao( | ||
token: String, | ||
): SignInResponse { | ||
return signInDataSource.signInWithKakao( | ||
token = token, | ||
) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package com.keyme.domain.entity | ||
|
||
abstract class BaseResponse<T : Any> { | ||
lateinit var statusCode: String | ||
lateinit var code: String | ||
lateinit var message: String | ||
lateinit var data: T | ||
} |
6 changes: 6 additions & 0 deletions
6
domain/src/main/java/com/keyme/domain/entity/request/SignInRequest.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 com.keyme.domain.entity.request | ||
|
||
data class SignInRequest( | ||
val oauthType: String, | ||
val token: String, | ||
) |
Oops, something went wrong.