import { IsString, IsIn, IsNotEmpty } from 'class-validator'; export class LoginDto { @IsString() @IsNotEmpty() account: string; @IsString() @IsNotEmpty() password: string; @IsString() @IsIn(['admin', 'school', 'teacher', 'parent']) @IsNotEmpty() role: string; }