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

Clean Architecture - Is not correct or i'm missing something #27

Open
gravataLonga opened this issue Oct 19, 2020 · 1 comment
Open

Comments

@gravataLonga
Copy link

It's me or this is bussiness logic and cannot be here.
https://github.com/katzien/go-structure-examples/blob/master/domain-hex-actor/pkg/storage/json/repository.go#L53-L59

To my own understand bussiness logic must be inside of "Domain" layer. This a mess or a missing something?

@profiralex
Copy link

@gravataLonga I assume you can treat it like an implementation of a database "unique" constraint. Although this logic can be represented in the "Domain" layer too to make it obvious from the beginning.

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

2 participants