diff --git a/knowledge.md b/knowledge.md index 7f65f1e..7d64b4c 100644 --- a/knowledge.md +++ b/knowledge.md @@ -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" + ] + } ``` - **示例:** - **上下文:**