add where for community name

This commit is contained in:
hannathkadher
2025-03-18 21:20:27 +04:00
parent ec851eda9d
commit 30badcde67
4 changed files with 27 additions and 5 deletions

View File

@ -0,0 +1,13 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsOptional } from 'class-validator';
import { PaginationRequestGetListDto } from './pagination.request.dto';
export class PaginationRequestWithSearchGetListDto extends PaginationRequestGetListDto {
@IsOptional()
@ApiProperty({
name: 'search',
required: false,
description: 'Search for community or space name',
})
search?: string;
}

View File

@ -18,6 +18,12 @@ export interface TypeORMCustomModelFindAllQuery {
includeDisable?: boolean | string;
includeSpaces?: boolean;
}
export interface ExtendedTypeORMCustomModelFindAllQuery
extends TypeORMCustomModelFindAllQuery {
search?: string;
}
interface CustomFindAllQuery {
page?: number;
size?: number;