go-clean-arch
go-clean-arch copied to clipboard
What is the entity, is it swollen in the domain?
Do the innermost entities in the neat architecture correspond to Auther and Article in the domain? Feel they are more like parameters.
I think the circles is not represent layers. This picture only use to explain the dependencies rules. The innermost circle means that it can be accessed by all members within the system. So you can move entites to other package, for example to a "data" package, in the same place as the Repository. You can refer to this 👇 project, although it is an Android project, but there is a reference value. architecture-samples-usecases
agree on @aitsuki
The entity on the diagram, I move it to the domain
package. So all other layers can import it easily without a cyclic import problem