go-clean-arch icon indicating copy to clipboard operation
go-clean-arch copied to clipboard

What is the entity, is it swollen in the domain?

Open helios741 opened this issue 3 years ago • 2 comments

image Do the innermost entities in the neat architecture correspond to Auther and Article in the domain? Feel they are more like parameters.

helios741 avatar May 08 '21 14:05 helios741

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

aitsuki avatar Oct 19 '21 01:10 aitsuki

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

bxcodec avatar Aug 04 '22 01:08 bxcodec