I have a query regarding the choice of service layer to use.
// 1
export class SomeService{
async create(dto:CreateSomeDto) {}
}
or
// 2
export class SomeService{
async create(title: string, content: string) {}
}
It appears that most individuals opt for option 1.
Nevertheless, I came across an article suggesting that this approach leads to increased interdependence between the controller and the service layer.
The argument is that the controller layer should rely on the service layer in a unidirectional manner.
There may not be a definitive answer, but could you help elucidate the advantages and disadvantages of each approach?