[feat] 重新梳理依赖

This commit is contained in:
2024-05-09 13:15:24 +08:00
parent 9172fb2f34
commit bddd754869
28 changed files with 341 additions and 1075 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ package base
import (
"git.fsdpf.net/go/contracts"
"git.fsdpf.net/go/req"
)
type ResRelation struct {
@@ -23,7 +24,7 @@ type GetResRelations func(categoryUuid string) []ResRelation
type GetOrmJoinsByResRelations func(root string, items []ResRelation) []contracts.Join
// 获取被关联对象的资源
type GetResRelationResource func(r ResRelation) (contracts.Resource, bool)
type GetResRelationResource func(r ResRelation) (req.Resource, bool)
// 资源关联依赖
func GetJoinResDependencies(root string, items []ResRelation) (dependencies []string) {