import { ISO_DATE, ValidationClass } from '@humand-packages/common';
import { Expose, Type } from 'class-transformer';
import { IsDefined, IsNumber } from 'class-validator';
import { IsValidDate } from '../../../../middlewares/dateValidator';

export class GetDaySummaryDetailVC extends ValidationClass {
    @IsDefined()
    @IsNumber()
    @Expose()
    @Type(() => Number)
    userId!: number;

    @IsDefined()
    @IsValidDate(ISO_DATE)
    @Expose()
    date!: string;
}
