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

export class PaginationQueryDto {
  @ApiPropertyOptional({ example: '1', description: 'Page number (1-based)' })
  @IsOptional()
  @IsNumberString()
  page?: string = '1';

  @ApiPropertyOptional({ example: '20', description: 'Items per page' })
  @IsOptional()
  @IsNumberString()
  limit?: string = '20';
}
