-
Notifications
You must be signed in to change notification settings - Fork 536
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
Repo has to be outside usecases #204
Comments
I agree with your structure, but I don't think it's necessary to declare the interface in |
I've not understood why you put the Repo inside usecases layer. As I as know Repo relates of infrastructure layer, and there may be storage like postgresql, kafka, file and some external service.
And some business logic has to be inside usecases layer.
I mean this:
Storage
UseCases (Services)
Models
As you did mentioned, domain models are need to work between layers
Conclusion
All the layers are isolated and reused easy
What do you think about it?
The text was updated successfully, but these errors were encountered: