up
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
Reference in New Issue
Block a user