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

export class CreateWaitlistDto {
  @ApiPropertyOptional({ description: '用户昵称' })
  @IsString()
  @IsOptional()
  nickname?: string;

  @ApiProperty({ description: '邮箱地址' })
  @IsString()
  email: string;

  @ApiProperty({ description: '使用的设备' })
  @IsArray()
  devices: string[];

  @ApiProperty({ description: '感兴趣的学习方向' })
  @IsArray()
  interests: string[];

  @ApiPropertyOptional({ description: '当前最大的痛点' })
  @IsString()
  @IsOptional()
  painpoint?: string;

  @ApiProperty({ description: '是否愿意参加内测' })
  @IsBoolean()
  willingBeta: boolean;
}
