import { ApiPropertyOptional } from "@nestjs/swagger"
import { IsInt, IsOptional, Min } from "class-validator"
import { Type } from "class-transformer"

export class GetRatingsDto {
  @ApiPropertyOptional({
    description: "Page number for pagination",
    type: Number,
    default: 1,
  })
  @IsOptional()
  @Type(() => Number)
  @IsInt()
  @Min(1)
  page?: number = 1

  @ApiPropertyOptional({
    description: "Number of items per page for pagination",
    type: Number,
    default: 10,
  })
  @IsOptional()
  @Type(() => Number)
  @IsInt()
  @Min(1)
  limit?: number = 10

  // You can add other query parameters here if needed, e.g., filtering by rater_id, rated_id, etc.
  // Example:
  // @ApiPropertyOptional({ description: 'Filter by rater ID' })
  // @IsOptional()
  // @Type(() => Number)
  // @IsInt()
  // rater_id?: number;
}
