I have a question about which service layer.
// 1
export class SomeService{
async create(dto:CreateSomeDto) {}
}
or
// 2
export class SomeService{
async create(title: string, content: string) {}
}
It seems that many people are using the same as 1.
However, I was confused by the article that this increases interdependence between the controller and the service layer.
They say that the controller layer should depend unidirectionally on the service layer.
I know there is no right answer, but please tell me clarify the pros and cons of each?