Open gravataLonga opened 4 years ago
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?
@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.
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?