[feat] add GetResRelationResource

This commit is contained in:
2023-04-21 23:27:13 +08:00
parent 1a7863e941
commit e2ace7f2d3
2 changed files with 72 additions and 17 deletions
+3
View File
@@ -22,6 +22,9 @@ type GetResRelations func(categoryUuid string) []ResRelation
type GetOrmJoinsByResRelations func(root string, items []ResRelation) []contracts.Join
// 获取被关联对象的资源
type GetResRelationResource func(r ResRelation) Resource
// 资源关联依赖
func GetJoinResDependencies(root string, items []ResRelation) (dependencies []string) {
dependencies = []string{root}