take an example of adding a user scenario.
first a user object comes from the foreground,
then you need to verify this object,
verify that the user name is in full English letters,
query database, user name does not exist,
, you can insert
.how should the application layer and domain layer be written in such a scenario? I would like to ask you to give a little more specific code, thank you.
service corresponds to the application layer, calling the entity entity layer and the repository repository,dao layer store.
and how to use value objects.