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

Clarifications regarding use of DTO #9

Open
zensabbah opened this issue May 17, 2024 · 0 comments
Open

Clarifications regarding use of DTO #9

zensabbah opened this issue May 17, 2024 · 0 comments

Comments

@zensabbah
Copy link

With my colleagues, we have some doubts regarding the the implementation of the architecture.

First , why in CompanyRepositoryInterface there are the DTO classes if the domain should be decoupled from the other layers?
Is not responsability of the application layer to connect the business logic with the infrastructure?

Secondly, why User domain is inside Agenda and not inside Auth, since JWTAuth and other classes refers to User?

Which is the best practice to refers Domain A to Domain B (ex. foreign key CompanyId inside User) to validate the data?

Thanks in advance!

CS

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

No branches or pull requests

1 participant