15 lines
564 B
TypeScript
15 lines
564 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsOptional, ValidateNested } from 'class-validator';
|
|
import { Type } from 'class-transformer';
|
|
import { PageRequestDto } from '../../common/dto/page-request.dto';
|
|
|
|
export class EquipmentListRequestDto {
|
|
@ApiProperty({ description: 'Фильтр', required: false })
|
|
@IsOptional()
|
|
filter?: any; // Using any since DTO.Filter is not defined in the schema
|
|
|
|
@ApiProperty({ description: 'Параметры пагинации' })
|
|
@ValidateNested()
|
|
@Type(() => PageRequestDto)
|
|
page: PageRequestDto;
|
|
} |