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