更新 knowledge.md
This commit is contained in:
124
knowledge.md
124
knowledge.md
@@ -1021,41 +1021,113 @@ meeting_with_room_and_agenda_wo示例:
|
|||||||
- **写方案设计元素表达:**
|
- **写方案设计元素表达:**
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type":"object",
|
"type": "object",
|
||||||
"description":"写方案定义",
|
"description": "写方案定义",
|
||||||
"properties":{
|
"properties": {
|
||||||
"uuid":{"type":"string","description":"写方案唯一标识,创建时不传,更新时必传"},
|
"uuid": {
|
||||||
"name":{"type":"string","description":"写方案名称,英文+下划线,32字符内"},
|
"type": "string",
|
||||||
"description":{"type":"string","description":"写方案描述,256字符内"},
|
"description": "写方案唯一标识,创建时不传,更新时必传"
|
||||||
"bo": {"type":"string","description":"聚合根名称"},
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "写方案名称,英文+下划线,32字符内"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "写方案描述,256字符内"
|
||||||
|
},
|
||||||
|
"bo": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "聚合根名称"
|
||||||
|
},
|
||||||
"operations": {
|
"operations": {
|
||||||
"type":"array","description":"实体操作定义,包括操作类型和字段",
|
"type": "array",
|
||||||
"items":{
|
"description": "实体操作定义,包括操作类型和字段",
|
||||||
"type": "object", "description":"具体实体操作定义",
|
"items": {
|
||||||
"properties":{
|
"type": "object",
|
||||||
"bo":{"type":"string","description":"操作的实体"},
|
"description": "具体实体操作定义",
|
||||||
"action":{"type":"string","description":"实体操作类型"},
|
"properties": {
|
||||||
|
"bo": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "操作的实体"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "实体操作类型"
|
||||||
|
},
|
||||||
"uniqueKey": {
|
"uniqueKey": {
|
||||||
"type":"array",
|
"type": "array",
|
||||||
"description":"唯一键字段列表,用于确定数据记录",
|
"description": "唯一键字段列表,用于确定数据记录",
|
||||||
"items":{"type":"string","description":"字段名称"}
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "字段名称"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"fields":{
|
"fields": {
|
||||||
"type":"array",
|
"type": "array",
|
||||||
"items":{"type":"string","description":"字段名称,必须来自bo对象"},
|
"items": {
|
||||||
"description":"操作字段列表"
|
"type": "string",
|
||||||
|
"description": "字段名称,必须来自bo对象"
|
||||||
},
|
},
|
||||||
"incrFields":{
|
"description": "操作字段列表"
|
||||||
"type":"array",
|
|
||||||
"items":{ "type":"string", "description":"增量字段名称"},
|
|
||||||
"description":"增量操作字段列表"
|
|
||||||
},
|
},
|
||||||
"required":["bo","action","fields"]
|
"incrFields": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "增量字段名称"
|
||||||
|
},
|
||||||
|
"description": "增量操作字段列表"
|
||||||
|
},
|
||||||
|
"customField": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "自定义字段名称",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "字段名称,英文下划线分割,不超过32字符"
|
||||||
|
},
|
||||||
|
"uuid": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "字段类型为Enum或Eo时必填,对应的Enum或Eo标识符"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "字段类型:String,Integer,Long,Float,Double,Boolean,Date,Eo,Enum,BigDecimal,List"
|
||||||
|
},
|
||||||
|
"innerUuid": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "当innerType为Eo或Enum时,对应的标识符"
|
||||||
|
},
|
||||||
|
"innerType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "List元素类型:String,Integer,Long,Float,Double,Boolean,Date,Eo,Enum,BigDecimal"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"type"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "自定义字段列表"
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"bo",
|
||||||
|
"action",
|
||||||
|
"fields"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required":["name","description","operations","bo"]
|
"required": [
|
||||||
|
"name",
|
||||||
|
"description",
|
||||||
|
"operations",
|
||||||
|
"bo"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
- **示例:**
|
- **示例:**
|
||||||
|
|||||||
Reference in New Issue
Block a user