import { IsString, Length } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class UnbindEmailDto {
  @ApiProperty({
    example: '123456',
    description: '6位数字验证码（发送到当前绑定的邮箱）',
  })
  @IsString()
  @Length(6, 6, { message: '验证码必须是6位数字' })
  code: string;
}
