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

export class DevLoginDto {
  @ApiProperty({ description: '开发测试邮箱' })
  @IsEmail()
  email: string;

  @ApiPropertyOptional({ description: '昵称' })
  @IsOptional()
  @IsString()
  nickname?: string;

  @ApiProperty({ description: '开发密钥' })
  @IsString()
  devSecret: string;
}
