-
Notifications
You must be signed in to change notification settings - Fork 1
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 #22 from Team-B1ND/feature/search
검색 페이지 구현하기
- Loading branch information
Showing
128 changed files
with
2,920 additions
and
1,272 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
data/src/main/java/kr/hs/dgsw/mentomenv2/data/datasource/DAuthDataSource.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,13 @@ | ||
package kr.hs.dgsw.mentomenv2.data.datasource | ||
|
||
import kotlinx.coroutines.flow.Flow | ||
import kr.hs.dgsw.mentomenv2.data.response.GetCodeResponse | ||
|
||
interface DAuthDataSource { | ||
fun getCode( | ||
id: String, | ||
pw: String, | ||
clientId: String, | ||
redirectURL: String, | ||
): Flow<GetCodeResponse> | ||
} |
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
26 changes: 26 additions & 0 deletions
26
data/src/main/java/kr/hs/dgsw/mentomenv2/data/datasourceimpl/remote/DAuthDataSourceImpl.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,26 @@ | ||
package kr.hs.dgsw.mentomenv2.data.datasourceimpl.remote | ||
|
||
import kotlinx.coroutines.flow.Flow | ||
import kotlinx.coroutines.flow.flow | ||
import kr.hs.dgsw.mentomenv2.data.datasource.DAuthDataSource | ||
import kr.hs.dgsw.mentomenv2.data.request.GetCodeRequest | ||
import kr.hs.dgsw.mentomenv2.data.response.GetCodeResponse | ||
import kr.hs.dgsw.mentomenv2.data.service.DAuthService | ||
import javax.inject.Inject | ||
|
||
class DAuthDataSourceImpl | ||
@Inject | ||
constructor( | ||
private val api: DAuthService, | ||
) : DAuthDataSource { | ||
override fun getCode( | ||
id: String, | ||
pw: String, | ||
clientId: String, | ||
redirectURL: String, | ||
): Flow<GetCodeResponse> { | ||
return flow { | ||
api.getCode(GetCodeRequest(id, pw, clientId, redirectURL)) | ||
} | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
data/src/main/java/kr/hs/dgsw/mentomenv2/data/mapper/CodeMapper.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,9 @@ | ||
package kr.hs.dgsw.mentomenv2.data.mapper | ||
|
||
import kr.hs.dgsw.mentomenv2.data.response.GetCodeResponse | ||
import kr.hs.dgsw.mentomenv2.domain.model.Code | ||
|
||
fun GetCodeResponse.toModel() = | ||
Code( | ||
code = this.location, | ||
) |
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.