实现角色权限管理

This commit is contained in:
2025-05-08 22:59:03 +08:00
parent a2972de417
commit 448a7b48ba
5 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { ArrayMinSize, IsArray, IsUUID } from "class-validator";
export class SetRolePermissionsDto {
@IsArray()
@ArrayMinSize(1)
@IsUUID('4', { each: true })
permissionIds: string[];
}