You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
前言
在 v1.0.0 开发完成并发版前,希望和大家一起讨论下在 ContiNew Admin 脚手架中最终采用哪一套分层领域模型,大家路过时请帮忙给出中肯的一票。
首先,本项目主要遵循阿里巴巴《Java开发手册》中的各项规范,所以先列出手册中给出的参考规约及解释:
选项
第 1 套:一个实体类搞定一切。
第 2 套:接收参数用 VO,响应信息用 DO。
第 3 套:接收参数用 VO,响应信息用 DTO。
第 4 套:接收参数用 DTO、Query,响应信息用 VO。
第 5 套:接收参数用 Request、Query,响应信息用 VO。
目前 ContiNew Admin 采用的是第 5 套,Request 是用于接收除查询类操作的请求参数,Query 是用于接收查询类操作的请求参数,而 VO 则是用于响应各个页面所需展示的信息。
命名及使用示例:
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions