In a controller/service/repository pattern should each layer return its own DTO?

前端 未结 0 1854
小鲜肉
小鲜肉 2020-12-29 00:47

Suppose we retrieve some data from the underlying datastore in the repository and we map it to a simple data holder/entity class.

Can this data holder/entity class co

相关标签:
回答
  • 消灭零回复
提交回复
热议问题