Files
cloud-v3/src/history/dto/get-history.dto.ts

24 lines
351 B
TypeScript

import { IsDateString, IsNotEmpty, IsString } from 'class-validator';
export class GetHistoryDto {
@IsNotEmpty()
@IsString()
edge!: string;
@IsNotEmpty()
@IsString()
tag!: string;
@IsNotEmpty()
@IsDateString()
from!: string;
@IsNotEmpty()
@IsDateString()
to!: string;
@IsNotEmpty()
@IsString()
granulate!: string;
}