更新 knowledge.md
This commit is contained in:
@@ -1595,7 +1595,10 @@ Java、SpringBoot、MyBatis-plus(读取)、Hibernate(写入)
|
|||||||
- `uuid`属性:唯一标识,包含`|`字符表示特殊格式拼装
|
- `uuid`属性:唯一标识,包含`|`字符表示特殊格式拼装
|
||||||
|
|
||||||
**3.5 分层规则**
|
**3.5 分层规则**
|
||||||
Service层方法不能返回VO,不能调用Controller层方法(如VoQueryExecutor、VoConverter等)
|
TOCO严格遵照分层规则,必须严格遵守,否则会产生严重后果!
|
||||||
|
- VO以及相关的类属于entrance层
|
||||||
|
- Service禁止引用任何entrance层的类或代码
|
||||||
|
- Service层方法禁止返回VO,禁止调用任何entrance层方法(如VoQueryExecutor、VoConverter等)
|
||||||
|
|
||||||
### 4. TOCO 最佳实践
|
### 4. TOCO 最佳实践
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user