feat: add generated code
This commit is contained in:
15
backend/src/equipment/dto/equipment-list-request.dto.ts
Normal file
15
backend/src/equipment/dto/equipment-list-request.dto.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user