Skip to content

[Data] Fake Repository 및 @Fake DI 한정자 추가 - #48

Merged
Moony-H merged 2 commits into
feature/44-create-my-pagefrom
feature/create-fake-repository
Aug 1, 2026
Merged

[Data] Fake Repository 및 @Fake DI 한정자 추가#48
Moony-H merged 2 commits into
feature/44-create-my-pagefrom
feature/create-fake-repository

Conversation

@Moony-H

@Moony-H Moony-H commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

관련 이슈

작업 내용

백엔드 API 연동 전, 마이페이지 화면 개발을 진행할 수 있도록 UserRepository/SajuRepository의 Fake 구현체와 DI 연결을 추가했습니다.

변경사항 / 상세

  • domain/di/Fake.kt: Hilt Qualifier 어노테이션 (domain에 위치 — UseCase가 참조해야 해서 data에 두면 역방향 참조(P1)가 되므로 domain에 배치)
  • data/repository/FakeUserRepository.kt, FakeSajuRepository.kt: 각각 UserRepository/SajuRepository 구현, 고정된 더미 데이터 반환
  • data/di/FakeRepositoryModule.kt: @Fake 한정자로 두 Fake 구현체를 바인딩
  • GetUserUseCase, GetSajuPaljaUseCase: 생성자 파라미터에 @Fake 부착

중점 리뷰사항

  • 지금은 실제 구현체가 없어 UseCase가 @Fake를 직접 참조하는 임시 구조입니다. 실제 API 연동 시 UseCase에서 @Fake를 제거하고 실제 구현체 바인딩으로 교체해야 합니다 (제거를 잊지 않도록 후속 이슈/체크리스트로 추적 필요).

스크린샷 (선택)

N/A (domain/data 레이어 전용 변경)

Moony-H added 2 commits July 31, 2026 18:28
* feat: @Fake Qualifier 추가
* feat: FakeUserRepository, FakeSajuRepository 구현 및 모듈 등록
* chore: UseCase에서 Fake Repository를 사용하도록 변경
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ba86a83a-8a58-4f03-8f6e-558764952c94

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Moony-H Moony-H self-assigned this Jul 31, 2026
@Moony-H
Moony-H marked this pull request as draft July 31, 2026 10:15
@Moony-H
Moony-H requested a review from oungsi2000 July 31, 2026 10:16
@Moony-H
Moony-H marked this pull request as ready for review July 31, 2026 10:16
Base automatically changed from feature/create-repository-and-usecase to feature/44-create-my-page August 1, 2026 05:29
@Moony-H
Moony-H merged commit 7bd3aa0 into feature/44-create-my-page Aug 1, 2026
6 checks passed
@Moony-H
Moony-H deleted the feature/create-fake-repository branch August 1, 2026 05:29
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.

2 participants