import { IsNumber, IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { BaseSearchDto } from 'upsti-lib-common';

export class Search{{moduleName}}DTO extends BaseSearchDto {
  @ApiProperty({
    type: Number,
    description: 'Id the {{moduleName}}',
    required: false,
  })
  @IsNumber()
  @IsOptional()
  id: number;
}
