📅  最后修改于: 2022-03-11 14:48:11.490000             🧑  作者: Mango
export class UserDto {
@IsEmail()
readonly email: string;
@IsOptional()
@IsEnum(Permissions, { each: true })
readonly permissions: Permissions[]; <- How to validate this?
}