[Refactor] domain 레이어에서 가지는 request dto 의존성을 제거합니다.#512
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors several repository and use case methods to accept primitive types or individual parameters instead of DTO request objects, such as CheckValidTokenRequest, ReportRequest, and ChangeNicknameRequest. This decoupling simplifies the domain layer and requires updates across implementations, interfaces, and unit tests. The review feedback suggests improving error handling in UserRepositoryImpl by explicitly matching all ApiResult cases and enhancing code readability by using named arguments and trailing commas in function calls and definitions.
app/src/main/java/com/eatssu/android/data/remote/repository/UserRepositoryImpl.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/eatssu/android/data/remote/repository/ReportRepositoryImpl.kt
Show resolved
Hide resolved
app/src/main/java/com/eatssu/android/domain/usecase/review/PostReportUseCase.kt
Show resolved
Hide resolved
...c/test/java/com/eatssu/android/domain/usecase/review/ReviewDelegatingUseCasesBehaviorSpec.kt
Outdated
Show resolved
Hide resolved
...c/test/java/com/eatssu/android/domain/usecase/review/ReviewDelegatingUseCasesBehaviorSpec.kt
Outdated
Show resolved
Hide resolved
.../java/com/eatssu/android/presentation/cafeteria/review/report/ReportViewModelBehaviorSpec.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
PeraSite
approved these changes
Mar 28, 2026
Member
PeraSite
left a comment
There was a problem hiding this comment.
오 너무 우아한데요 좋아요!! 비슷한 구조로 파라미터가 4~5개씩 되는 경우만 주의하면 좋겠네요. 💯
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
domain 레이어에서 가지는 request dto 의존성을 제거합니다.
Describe your changes
DTO가 아닌 낱알의 필드(nickname, token)등으로 전달하도록 수정했습니다.
필드가 많지 않은 경우에는 별도의 도메인 모델을 생성하지 않고 낱알의 필드로 전달하는 것이 좋을 것 같다고 판단했습니다.
다행히 많이 수정이 되어있어서, 작업사항이 많지는 않습니다.
Issue
To reviewers