-
Notifications
You must be signed in to change notification settings - Fork 0
[Refactor] domain 레이어에서 가지는 request dto 의존성을 제거합니다. #512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3f3a098
refactor: 토큰 유효성 검사 API와 관련해 도메인 레이어의 잘못된 의존성을 리팩토링합니다
HI-JIN2 777e708
refactor: 신고하기 API와 관련해 도메인 레이어의 잘못된 의존성을 리팩토링합니다
HI-JIN2 6399533
refactor: 닉네임 변경 API와 관련해 도메인 레이어의 잘못된 의존성을 리팩토링합니다
HI-JIN2 50b6933
Apply suggestion from @gemini-code-assist[bot]
HI-JIN2 f77e22b
Apply suggestion from @gemini-code-assist[bot]
HI-JIN2 cc6cfd5
Apply suggestion from @gemini-code-assist[bot]
HI-JIN2 9f24922
Apply suggestion from @gemini-code-assist[bot]
HI-JIN2 624b22c
Apply suggestion from @gemini-code-assist[bot]
HI-JIN2 6468819
chore: exception을 그대로 담은 실패 Result를 반환
HI-JIN2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
8 changes: 3 additions & 5 deletions
8
app/src/main/java/com/eatssu/android/domain/repository/ReportRepository.kt
This file contains hidden or 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,11 +1,9 @@ | ||
| package com.eatssu.android.domain.repository | ||
|
|
||
| import com.eatssu.android.data.remote.dto.request.ReportRequest | ||
| import kotlinx.coroutines.flow.Flow | ||
|
|
||
| interface ReportRepository { | ||
| suspend fun reportReview( | ||
| body: ReportRequest, | ||
| reviewId: Long, | ||
| reportType: String, | ||
| content: String, | ||
| ): Boolean | ||
| } | ||
|
|
3 changes: 1 addition & 2 deletions
3
app/src/main/java/com/eatssu/android/domain/repository/UserRepository.kt
This file contains hidden or 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
5 changes: 2 additions & 3 deletions
5
app/src/main/java/com/eatssu/android/domain/usecase/auth/GetIsAccessTokenValidUseCase.kt
This file contains hidden or 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,12 +1,11 @@ | ||
| package com.eatssu.android.domain.usecase.auth | ||
|
|
||
| import com.eatssu.android.data.remote.dto.request.CheckValidTokenRequest | ||
| import com.eatssu.android.domain.repository.OauthRepository | ||
| import javax.inject.Inject | ||
|
|
||
| class GetIsAccessTokenValidUseCase @Inject constructor( | ||
| private val oauthRepository: OauthRepository | ||
| ) { | ||
| suspend operator fun invoke(userAccessToken: String): Boolean = | ||
| oauthRepository.checkValidToken(CheckValidTokenRequest(userAccessToken)) | ||
| } | ||
| oauthRepository.checkValidToken(userAccessToken) | ||
| } |
15 changes: 11 additions & 4 deletions
15
app/src/main/java/com/eatssu/android/domain/usecase/review/PostReportUseCase.kt
This file contains hidden or 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,12 +1,19 @@ | ||
| package com.eatssu.android.domain.usecase.review | ||
|
|
||
| import com.eatssu.android.data.remote.dto.request.ReportRequest | ||
| import com.eatssu.android.domain.repository.ReportRepository | ||
| import javax.inject.Inject | ||
|
|
||
| class PostReportUseCase @Inject constructor( | ||
| private val reportRepository: ReportRepository, | ||
| ) { | ||
| suspend operator fun invoke(body: ReportRequest): Boolean = | ||
| reportRepository.reportReview(body) | ||
| } | ||
| suspend operator fun invoke( | ||
| reviewId: Long, | ||
| reportType: String, | ||
| content: String | ||
| ): Boolean = | ||
|
HI-JIN2 marked this conversation as resolved.
|
||
| reportRepository.reportReview( | ||
| reviewId = reviewId, | ||
| reportType = reportType, | ||
| content = content, | ||
| ) | ||
| } | ||
15 changes: 1 addition & 14 deletions
15
app/src/main/java/com/eatssu/android/domain/usecase/user/SetUserNicknameUseCase.kt
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.