refactor:替换自增id为cuid
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { ArrayUnique, IsInt, IsNotEmpty } from 'class-validator';
|
||||
import { ArrayUnique, IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
export class UserRoleDto {
|
||||
@IsNotEmpty()
|
||||
@IsInt({ each: true })
|
||||
@IsString({ each: true })
|
||||
@ArrayUnique()
|
||||
roleIds: number[];
|
||||
roleIds: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user