From 57f92ebfe9253259e15a5df207e300204cfa4be7 Mon Sep 17 00:00:00 2001 From: ycl Date: Thu, 19 Jun 2025 16:07:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20llms-full.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llms-full.txt | 53 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/llms-full.txt b/llms-full.txt index 627b261..a179078 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -1,4 +1,3 @@ - ## TOCO知识库 ### **1. TOCO 平台概览:** - **1.1 平台简介:** TOCO是一款重视软件设计及核心代码自动生成的专业研发平台。其基于DDD、分层设计、CQRS等经典研发理论,从数据库到API全部覆盖,可显著提升开发设计和编程效率,帮助开发团队实现更高的质量和生产力 @@ -13,9 +12,57 @@ #### **2.2 枚举 (Enum)** - **定义与用途:** Enum用来表达一些常量值的集合,可被其他模块使用,可被用来做为字段的类型 - **关键属性/配置:** 名称(以_enum结尾),枚举值列表(全大写字母+下划线) +- **与其他元素关系:** 枚举可以作为其他对象(Entity、Dto、Vo、Bto、Qto、Eo)的字段类型使用。 +- **设计元素的表达:** + - 以Json格式表达,json schema 定义如下 + ```json + { + "type": "object", + "properties": { + "name": { "type": "string","description": "名称,使用英语表达,单词之间使用下划线分割,总长度不能超过32个字符"}, + "uuid": { "type": "string","description": "计元素(Enum)在TOCO中的唯一标识符,在创建枚举的时候,该字段为空; 在更新时,该字段不能为空"}, + "description": { "type": "string", "description": "描述,描述这个枚举的具体含义,介绍这个枚举的用途,控制在128个字符以内"}, + "moduleId": { "type": "string", "description": "指定该设计元素(Enum)所属的模块,在创建的时候该字段不能为空,在更新的时候,该字段可以为空"}, + "values": { + "type": "array", + "items": {"type": "string","description": "枚举值列表,使用英语表达, 单词之间使用下划线分割,总长度不能超过32个字符"} + } + }, + "required":["name","description"] + } + ``` #### **2.3 值对象 (Eo)** -- **定义与用途:** EO为一种POJO对象结构,可被其他模块使用,可被用来做为实体字段的类型 -- **关键属性/配置:** 名称(以_eo结尾),字段列表。EO的字段类型只能为基本类型(含List)、EO、Enum,其他类型不允许 +- **定义与用途:** EO为一种POJO对象结构,可被其他模块使用,可被用来做为实体字段的类型。 +- **关键属性/配置:** 名称(以_eo结尾)。EO的字段类型只能为基本类型(含List)、EO、Enum,其他类型不允许。 +- **与其他元素关系:** 可以作为其他对象(Entity、Dto、Vo、Bto、Qto)的字段类型使用,同时一个Eo中可以嵌套其他EO作为字段类型。 +- **设计元素的表达:** + - 以Json格式表达,Json Schema定义及如下 + ```json + { + "type":"object", + "properties": { + "name":{ "type": "string", "description": "名称,使用英语表达,单词之间使用下划线分割,总长度不能超过32个字符"}, + "description": { "type": "string","description": "描述,描述这个数据结构的具体含义,介绍这个数据结构的用途,控制在128个字符以内"}, + "uuid":{ "type": "string", "description": "该设计在TOCO中的唯一标识符,在创建EO的时候,该字段为空; 在更新时,该字段不能为空"}, + "moduleId":{ "type": "string", "description": "指定该设计所属的模块,在创建的时候该字段不能为空,在更新的时候,该字段可以为空"}, + "fieldList":{ + "type":"array", + "items":{ + "type": "object", + "properties":{ + "name": { "type": "string","description": "属性字段名称,使用英语表达,单词之间使用下划线分割,总长度不能超过32个字符"}, + "uuid":{ "type": "string","description": "当字段类型是枚举、值对象的时候,该字段不能为空,表示该字段对应的枚举或者值对象" } , + "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": "当type是List的时候,表示List包含的元素类型, 类型可以是String,Integer,Long,Float,Double,Boolean,Date,Eo,Enum, BigDecimal"} + }, + "required":[ "name","type"] + } + } + }, + "required":["name","description"] + } + ``` #### **2.4 实体关系 (ER / Entity)** - **定义与用途:** 实体及其关系。一个实体一般对应一个数据库表,关系为实体间的外键依赖关系 - **关键属性/配置:** 实体中包含名称、字段、字段类型、主键、索引等,关系分为1:1和1:N关系