Skip to content
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

DTO의 의존성 문제에 대해 논의한다. #146

Open
beer-2000 opened this issue May 27, 2023 · 1 comment
Open

DTO의 의존성 문제에 대해 논의한다. #146

beer-2000 opened this issue May 27, 2023 · 1 comment
Assignees
Labels
conversation 논의 사항

Comments

@beer-2000
Copy link
Collaborator

Problem) presentation package에는 request, application package에는 response가 존재한다.
둘은 모두 application package(Service)에서 사용된다.

  1. 의존성 흐름에 맞게 Request를 application으로 내릴 수 있다.
    → Swagger code가 application 단에 들어가는 문제 발생
  2. Web environment <-> Presentation / Presentation <-> Application 계층 간 DTO를 분리한다.
    → DTO 코드가 2배가 되고, Mapping 역할도 발생한다.
@kevstevie
Copy link
Collaborator

request와 application의 의존을 끊어주고 현상을 유지하는건 어떤가요
레이어간의 단방향 의존을 지키면서 수정사항도 최소로 유지할 수 있을 것 같은데요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conversation 논의 사항
Projects
None yet
Development

No branches or pull requests

3 participants