This commit is contained in:
2025-11-22 11:47:58 +03:30
parent cab0c75158
commit e411a53407
2 changed files with 8 additions and 7 deletions
@@ -1,15 +1,16 @@
import { IsOptional, IsNumber, Min, Max } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
import { Type } from 'class-transformer';
export class FindSchedulesDto {
@IsOptional()
@IsNumber({}, { each: true })
@Min(0, { each: true })
@Max(6, { each: true })
@Type(() => Number)
@IsNumber()
@Min(0)
@Max(6)
@ApiPropertyOptional({
example: 0,
description: 'Filter by week days (0=Sunday, 6=Saturday)',
type: [Number],
type: Number,
})
weekDay?: number[];
weekDay?: number;
}