Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么App层只有dto #537

Open
AsDeadAsADodo opened this issue Aug 9, 2024 · 1 comment
Open

为什么App层只有dto #537

AsDeadAsADodo opened this issue Aug 9, 2024 · 1 comment

Comments

@AsDeadAsADodo
Copy link

AsDeadAsADodo commented Aug 9, 2024

官方博客api中接收的参数和返回的对象都算是dto吗?难道只有Web端返回的内容才算VO吗?

@felix9ia
Copy link

felix9ia commented Oct 29, 2024

因为 App 层不止要服务 Adapter 层,还要服务于 client 层(SDK, RPC),所以在 App 层都用 DTO 合适。如果把 VO 使用在 RPC 上是不合适的,交流一下 #557

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants