The usual pattern I see is three layers for the Model: Service layer, Domain layer, and Data Layer. In this pattern, the Domain Layer handles most of the business logic.
For REST services which does mostly just CRUD with minimal business logic, could the Domain Layer be excluded? Can the business logic be pushed to the Service layer instead?
Aucun commentaire:
Enregistrer un commentaire