import { IsString, IsOptional, IsInt, IsEnum } from 'class-validator';
import { Type } from 'class-transformer';
import { UserStatus } from '../../users/dto/create-user.dto';

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

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

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

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

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

  @IsEnum(UserStatus)
  @IsOptional()
  status?: UserStatus;
}
