ruslantsyganok / clean_arcitecture_golang_example

Clean Architecture Golang Example (kinda)
257 stars 74 forks source link

DTO between service and repository #2

Open n-r-w opened 2 years ago

n-r-w commented 2 years ago

Shouldn't we convert datastructure (aka entity) into another kind of DTO at the transition between service (aka usecase) and repository(aka gateway)? After all, the rules of interaction between business logic and the database can change as well as the rules at the handler level.

ruslantsyganok commented 2 years ago

Yes, of course we do! This repo (or video for that matter) is fairly old! Thanks for your comment!

Pulgafree commented 1 year ago

I will like to see and follow up video, updating this matter and going from zero to complete example.

Much like learn by doing approach