import { ApiProperty, ApiBody, PartialType } from '@nestjs/swagger';
import { Exclude } from 'class-transformer';
import {
  Allow,
  IsArray,
  IsBoolean,
  IsNotEmpty,
  IsNumber,
  IsOptional,
  IsString,
  Length,
} from 'class-validator';

export class QueryOperationLogDto {
  @ApiProperty({ required: false })
  @Allow()
  pageSize?: number;

  @ApiProperty({ required: false })
  @Allow()
  pageNo?: number;

  @ApiProperty({ required: false })
  @Allow()
  useName?: string;

  @ApiProperty({ required: false })
  @Allow()
  enable?: boolean;

  @ApiProperty({ required: false })
  @Allow()
  times?: [string, string];
}
