Skip to content

Domain Layer에서 DTO 제거 (Admin, Auth, Comment, Map, MapDirection) #119

@zzangzzangguy

Description

@zzangzzangguy

🤔 작업 배경

현재 Domain Layer의 Repository 인터페이스가 Data Layer의 DTO를 직접 노출중!
Clean Architecture 원칙상 Domain Layer에는 Entity만 있어야 하고, DTO → Entity 변환은 구현체 내부에서만 이뤄져야 함

📝 작업 내용

AdminRepository, AuthAPIRepository, CommentAPIRepository, MapRepository, MapDirectionRepository 의 DTO 타입을 제거하고 Domain Entity로 변경

👀 ETC (추후 개발해야 할 것, 참고자료 등)

Presentation → Domain 의 의존성 사이클이 없는지 전체 점검

  • Repository Inteface에서 DTO를 가지고 있지 않나요?
  • 파라미터 및 return 객체의 변경으로 사이드 이펙트가 발생한 UseCase에서 에러가 생기지 않나요?

Metadata

Metadata

Assignees

Labels

🔄 refactor프로덕션 코드 리팩토링, 파일 삭제, 네이밍 수정 및 폴더링

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions