更新 knowledge.md

This commit is contained in:
ycl
2025-09-25 15:05:19 +08:00
parent 546e45aa97
commit 7eac1bbeb6

View File

@@ -1020,43 +1020,115 @@ meeting_with_room_and_agenda_wo示例
- 当CREATE操作的时候如果主键不又入参指定不勾选主键字段主键字段的值由框架分配如果勾选了主键但是不传递参数值会造成运行时异常
- **写方案设计元素表达:**
```json
{
"type":"object",
"description":"写方案定义",
"properties":{
"uuid":{"type":"string","description":"写方案唯一标识,创建时不传,更新时必传"},
"name":{"type":"string","description":"写方案名称,英文+下划线32字符内"},
"description":{"type":"string","description":"写方案描述256字符内"},
"bo": {"type":"string","description":"聚合根名称"},
"operations": {
"type":"array","description":"实体操作定义,包括操作类型和字段",
"items":{
"type": "object", "description":"具体实体操作定义",
"properties":{
"bo":{"type":"string","description":"操作的实体"},
"action":{"type":"string","description":"实体操作类型"},
"uniqueKey": {
"type":"array",
"description":"唯一键字段列表,用于确定数据记录",
"items":{"type":"string","description":"字段名称"}
},
"fields":{
"type":"array",
"items":{"type":"string","description":"字段名称必须来自bo对象"},
"description":"操作字段列表"
},
"incrFields":{
"type":"array",
"items":{ "type":"string", "description":"增量字段名称"},
"description":"增量操作字段列表"
},
"required":["bo","action","fields"]
}
}
}
},
"required":["name","description","operations","bo"]
}
{
"type": "object",
"description": "写方案定义",
"properties": {
"uuid": {
"type": "string",
"description": "写方案唯一标识,创建时不传,更新时必传"
},
"name": {
"type": "string",
"description": "写方案名称,英文+下划线32字符内"
},
"description": {
"type": "string",
"description": "写方案描述256字符内"
},
"bo": {
"type": "string",
"description": "聚合根名称"
},
"operations": {
"type": "array",
"description": "实体操作定义,包括操作类型和字段",
"items": {
"type": "object",
"description": "具体实体操作定义",
"properties": {
"bo": {
"type": "string",
"description": "操作的实体"
},
"action": {
"type": "string",
"description": "实体操作类型"
},
"uniqueKey": {
"type": "array",
"description": "唯一键字段列表,用于确定数据记录",
"items": {
"type": "string",
"description": "字段名称"
}
},
"fields": {
"type": "array",
"items": {
"type": "string",
"description": "字段名称必须来自bo对象"
},
"description": "操作字段列表"
},
"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"
]
}
```
- **示例:**
- **上下文:**