33 lines
594 B
TypeScript
33 lines
594 B
TypeScript
import { Type } from "class-transformer";
|
|
import { IsDateString, IsInt, IsOptional, IsString } from "class-validator";
|
|
|
|
export class SearchShiftsDto {
|
|
@IsOptional()
|
|
@Type(()=> Number)
|
|
@IsInt()
|
|
employee_id?: number;
|
|
|
|
@IsOptional()
|
|
@Type(()=> Number)
|
|
@IsInt()
|
|
bank_code_id?: number;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
comment_contains?: string;
|
|
|
|
@IsOptional()
|
|
@IsDateString()
|
|
start_date?: string;
|
|
|
|
@IsOptional()
|
|
@IsDateString()
|
|
end_date?: string;
|
|
|
|
@IsOptional()
|
|
@Type(()=> Number)
|
|
@IsInt()
|
|
timesheet_id?: number;
|
|
|
|
|
|
} |