17 lines
348 B
TypeScript
17 lines
348 B
TypeScript
import { PaginationDto } from '@/common/dto/pagination.dto';
|
|
import { IsOptional, IsInt } from 'class-validator';
|
|
import { Type } from 'class-transformer';
|
|
|
|
export class QueryListDto extends PaginationDto {
|
|
@IsOptional()
|
|
account?: string;
|
|
|
|
@IsOptional()
|
|
name?: string;
|
|
|
|
@IsOptional()
|
|
@Type(() => Number)
|
|
@IsInt()
|
|
status?: number;
|
|
}
|