feat: RBAC

This commit is contained in:
2025-03-12 16:34:54 +08:00
parent fb3686968d
commit 1c691e8626
9 changed files with 188 additions and 26 deletions

View File

@@ -13,6 +13,9 @@ export class PermissionService {
resourceId: true,
},
where: {
resource: {
type,
},
permission: {
sysRolePermission: {
some: { roleId },