Skip to content

[Refactor] domain 레이어에서 가지는 request dto 의존성을 제거합니다.#512

Merged
HI-JIN2 merged 9 commits intodevelopfrom
refactor/domain-remove-request-dto
Mar 29, 2026
Merged

[Refactor] domain 레이어에서 가지는 request dto 의존성을 제거합니다.#512
HI-JIN2 merged 9 commits intodevelopfrom
refactor/domain-remove-request-dto

Conversation

@HI-JIN2
Copy link
Copy Markdown
Member

@HI-JIN2 HI-JIN2 commented Mar 27, 2026

Summary

domain 레이어에서 가지는 request dto 의존성을 제거합니다.

Describe your changes

DTO가 아닌 낱알의 필드(nickname, token)등으로 전달하도록 수정했습니다.
필드가 많지 않은 경우에는 별도의 도메인 모델을 생성하지 않고 낱알의 필드로 전달하는 것이 좋을 것 같다고 판단했습니다.

다행히 많이 수정이 되어있어서, 작업사항이 많지는 않습니다.

Issue

To reviewers

@HI-JIN2 HI-JIN2 requested a review from PeraSite March 27, 2026 07:19
@HI-JIN2 HI-JIN2 self-assigned this Mar 27, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

HI-JIN2 and others added 5 commits March 27, 2026 22:39
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

This comment was marked as duplicate.

Copy link
Copy Markdown
Member

@PeraSite PeraSite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 너무 우아한데요 좋아요!! 비슷한 구조로 파라미터가 4~5개씩 되는 경우만 주의하면 좋겠네요. 💯

@HI-JIN2 HI-JIN2 merged commit 144987c into develop Mar 29, 2026
1 check passed
@HI-JIN2 HI-JIN2 deleted the refactor/domain-remove-request-dto branch March 29, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DTO request를 domain 밖으로 밀어내기

2 participants