import { IsOptional, IsString, IsInt, Min, Max } from 'class-validator';
import { Type } from 'class-transformer';

export class QueryGuidedWorkDto {
  @IsInt()
  @Min(1)
  @Type(() => Number)
  @IsOptional()
  page?: number = 1;

  @IsInt()
  @Min(1)
  @Max(100)
  @Type(() => Number)
  @IsOptional()
  pageSize?: number = 10;

  @IsInt()
  @Type(() => Number)
  @IsOptional()
  contestId?: number;

  @IsString()
  @IsOptional()
  workNo?: string;

  @IsString()
  @IsOptional()
  playerName?: string;

  @IsString()
  @IsOptional()
  accountNo?: string;
}
