From 9cb389af915d0fac8321060f6c54ae0bba14218d Mon Sep 17 00:00:00 2001 From: oyo Date: Thu, 26 Jun 2025 14:40:29 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llms-full.txt b/llms-full.txt index 3d1957f..0b03f93 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -199,7 +199,7 @@ DateTime endTime; //会议结束时间 "field": "room_id", "fieldName": "meeting_room", "dto": { - "uuid": null, + "uuid": "d05c7b3d-1c92-45a1-2113-a01b245813c1", "name": "meeting_room_with_meetings_dto", "fromEntity": "meeting_room", "description": "会议室信息,包含会议列表" @@ -222,7 +222,7 @@ DateTime endTime; //会议结束时间 ```json { "dto": { - "uuid": null, + "uuid": "d05c7b3d-1c92-45a1-2113-a01b245813c1", "name": "meeting_room_with_meetings_dto", "description": "会议室详情,包含会议室信息,以及其中的会议信息", "fromEntity": "meeting", @@ -241,7 +241,7 @@ DateTime endTime; //会议结束时间 } } ``` -示例中meeting_with_room_dto和meeting_room_with_meetings_dto没有uuid,为待创建的DTO。meeting_base_dto为已存在的DTO,带有uuid。 +示例中meeting_with_room_dto没有uuid,为待创建的DTO。meeting_base_dto和meeting_room_with_meetings_dto为已存在的DTO,带有uuid。 - **预定义方法:** 对于每一个DTO,TOCO会自动其根Entity的唯一索引生成一些预定义的RPC方法及实现,预定义方法不仅获取了根Entity的数据,还通过RPC调用的方式**自动**获取了**所有扩展字段**的数据,并对数据进行了拼装处理。如实体user有unique index(username),则会针对UserDto生成UserDto UserDtoService.getByUserName(String userName)和List UserDtoService.getByUserNames(List userNames)。预定义方法内部根据外键关系自动生成了复杂DTO数据的递归、Join拼装的能力,会直接返回DTO内部的所有继承字段和扩展字段的数据。注意自定义字段的数据获取不会自动生成,需要在对应的convert方法中编写代码。 - **公开性:** DTO可以设置公开性,如果DTO为公开,则其生成的预定义RPC方法也为公开RPC,可以被其他模块订阅并调用;如果DTO为非公开,则其生成的预定义RPC方法也为非公开RPC,其他模块不可见