mirror of
https://github.com/docmost/docmost.git
synced 2026-09-02 20:05:41 +08:00
feat: search
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export class SearchResponseDto {
|
||||
id: string;
|
||||
title: string;
|
||||
icon: string;
|
||||
parentPageId: string;
|
||||
creatorId: string;
|
||||
rank: string;
|
||||
highlight: string;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { IsNumber, IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class SearchDTO {
|
||||
@IsString()
|
||||
query: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
creatorId?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
limit?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
offset?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user