DTO

차노·2023년 11월 9일
0
post-custom-banner

DTO is needed for validation pipe.

Controller defines routes and picks interesting data from incoming request. Service handles real logic, and repository find the methods. Entity defines what a property is and related to service and repository. ValidationPipe is related to DTO.

remove(Entity) vs delete(id)

0개의 댓글