import { Expose, Type } from 'class-transformer';
import { IsNumber, IsDefined, Min } from 'class-validator';
import { ValidationClass } from './validationClass';

export class MandatoryPaginableVC extends ValidationClass {
    @IsDefined()
    @Expose()
    @IsNumber()
    @Type(() => Number)
    @Min(1)
    page!: number;

    @IsDefined()
    @Expose()
    @IsNumber()
    @Type(() => Number)
    @Min(1)
    limit!: number;
}
