feat: 调整项目层级
This commit is contained in:
8
server/src/modules/system/auth/dto/user-role.dto.ts
Normal file
8
server/src/modules/system/auth/dto/user-role.dto.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { ArrayUnique, IsInt, IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class UserRoleDto {
|
||||
@IsNotEmpty()
|
||||
@IsInt({ each: true })
|
||||
@ArrayUnique()
|
||||
roleIds: number[];
|
||||
}
|
||||
Reference in New Issue
Block a user