Files
dpage-api/src/modules/restaurants/dto/find-schedules.dto.ts
T
2026-03-09 11:38:43 +03:30

17 lines
401 B
TypeScript

import { IsOptional, IsNumber, Min, Max } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
import { Type } from 'class-transformer';
export class FindSchedulesDto {
@IsOptional()
@Type(() => Number)
@IsNumber()
@Min(0)
@Max(6)
@ApiPropertyOptional({
description: 'Filter by week days (0=Sunday, 6=Saturday)',
type: Number,
})
weekDay?: number;
}