Answer the question
In order to leave comments, you need to log in
Are you organizing a DTO for the service layer?
I want to organize service classes with detailed documentation, can you tell me from practice how best to proceed?
1. Work with services through DTO
2. Work directly with models, collections (activerecord)
Answer the question
In order to leave comments, you need to log in
Data Transfer Object (DTO) is one of the design patterns used to transfer data between application subsystems. A Data Transfer Object, unlike a business object or a data access object, should not contain any behavior.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question