Skip to content

Refactor Service Layer to Work Directly with Models Instead of DTOs #11

@dangquyitt

Description

@dangquyitt

I believe that DTOs should only be used in the controller layer, while services should work directly with models to maintain the independence of business logic. Imagine if your request didn’t come through HTTP but via gRPC or a message queue; you would only need to map it to the corresponding model, and the service code would remain unchanged

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions