[feat] 重新梳理依赖
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user