Browse Source

Updated files

master
adiao 3 years ago
parent
commit
17478c2543
  1. 12
      项目命名/项目命名格式.md

12
项目命名/项目命名格式.md

@ -53,13 +53,13 @@ MVC 分层 Controller,Service,ServiceImpl,DAO 后缀 UserManageController
> 注:Prefix-前缀,Suffix-后缀,Alone-单独使用 > 注:Prefix-前缀,Suffix-后缀,Alone-单独使用
| 位置 | 单词 | 意义 | 例 | | 位置 | 单词 | 意义 | 例 |
|:----|:----|:----|:--------------| |:----|:-------|:----|:-------|
| Prefix | is | 对象是否符合期待的状态 | isValid | | Prefix | is | 对象是否符合期待的状态 | isValid|
| Prefix | can | 对象能否执行所期待的动作 | canRemove | | Prefix | can | 对象能否执行所期待的动作 | canRemove |
| Prefix | should | 调用方执行某个命令或方法是好还是不好,应不应该,或者说推荐还是不推荐 | shouldMigrate | | Prefix | should | 调用方执行某个命令或方法是好还是不好,应不应该,或者说推荐还是不推荐 | shouldMigrate |
| Prefix | has | 对象是否持有所期待的数据和属性 | hasObservers | | Prefix | has | 对象是否持有所期待的数据和属性 | hasObservers |
| Prefix | needs | 调用方是否需要执行某个命令或方法 | needsMigrate | | Prefix | needs | 调用方是否需要执行某个命令或方法 | needsMigrate |
##### 4.2 用来检查的方法 ##### 4.2 用来检查的方法

Loading…
Cancel
Save