From 692e59e54e34e035440952e25aaf5ba4ed29fc06 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 4 Jul 2024 15:50:15 +0800 Subject: [PATCH] =?UTF-8?q?[doc]=20=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/res_relation.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/res_relation.go b/base/res_relation.go index 2e7890b..fad0301 100644 --- a/base/res_relation.go +++ b/base/res_relation.go @@ -51,6 +51,7 @@ func GetJoinResDependencies(root string, items []ResRelation) (dependencies []st return dependencies } +// 获取关联路径, [A, C, B] => [A -> B -> C] func GetModelPrefixForRelations(model string, items []ResRelation) (result []any) { result = append([]any{model}, result...) for _, item := range items { @@ -64,6 +65,7 @@ func GetModelPrefixForRelations(model string, items []ResRelation) (result []any return result } +// 获取关联路径, [A, C, B] => [A -> B -> C] func GetModelJoinsForRelations(model string, items []ResRelation) (result []string) { result = append([]string{model}, result...) for _, item := range items {