10 lines
216 B
TypeScript
10 lines
216 B
TypeScript
import { Type } from "class-transformer";
|
|
import { IsInt, Min, Max } from "class-validator";
|
|
|
|
export class GetShiftsValidationDto {
|
|
@Type(()=> Number)
|
|
@IsInt()
|
|
@Min(1)
|
|
@Max(26)
|
|
periodId: number;
|
|
} |