mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
add where for community name
This commit is contained in:
13
libs/common/src/dto/pagination-with-search.request.dto.ts
Normal file
13
libs/common/src/dto/pagination-with-search.request.dto.ts
Normal 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;
|
||||
}
|
@ -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;
|
||||
|
Reference in New Issue
Block a user