[feat] 添加 resource.WithRolesCondition 方法

This commit is contained in:
2023-04-22 17:57:00 +08:00
parent 99df51e259
commit 94364138b7
2 changed files with 103 additions and 7 deletions
+1 -2
View File
@@ -54,8 +54,7 @@ type Resource interface {
GetStruct(extends ...reflect.StructField) any
GetSliceStruct(extends ...reflect.StructField) any
WithRolesCondition(b *db.Builder, roles ...string)
// GetRolesCondition(u User)
WithRolesCondition(b *db.Builder, t string, roles ...string) error
// 是否虚拟资源
IsVirtual() bool