The Domain has the Domain Models.
The Infrastructure layer has Commands and Queries, forming CQRS.
Commands return Domain Models, and Queries return DTOs.
In any API, the DTOs are stored in the Application layer, never in the Domain, but if Queries return DTOs, must the DTOs be stored in the Domain? Is it a good idea?
Aucun commentaire:
Enregistrer un commentaire