Description
Currently, the project lacks a dedicated DTO (Data Transfer Object) mapping layer between the domain models and the API response/request objects.
This can lead to tight coupling between internal entities and external representations, making it harder to maintain and scale the codebase.
Objective
Introduce DTOs to cleanly separate:
- Database layer
- Service layer objects
- API input/output models
Additional Notes
Adding DTOs will improve maintainability, encapsulation, and API consistency, and will make future refactoring easier.
Labels: enhancement, refactor, architecture
Description
Currently, the project lacks a dedicated DTO (Data Transfer Object) mapping layer between the domain models and the API response/request objects.
This can lead to tight coupling between internal entities and external representations, making it harder to maintain and scale the codebase.
Objective
Introduce DTOs to cleanly separate:
Additional Notes
Adding DTOs will improve maintainability, encapsulation, and API consistency, and will make future refactoring easier.
Labels:
enhancement,refactor,architecture