mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
df9110268c
* Move sidebar pages from workspace to space level * Replace array sorting with lexicographical fractional indexing * Fixes and updates
27 lines
320 B
TypeScript
27 lines
320 B
TypeScript
import {
|
|
IsNumber,
|
|
IsOptional,
|
|
IsPositive,
|
|
IsString,
|
|
Max,
|
|
Min,
|
|
} from 'class-validator';
|
|
|
|
export class PaginationOptions {
|
|
@IsOptional()
|
|
@IsNumber()
|
|
@Min(1)
|
|
page = 1;
|
|
|
|
@IsOptional()
|
|
@IsNumber()
|
|
@IsPositive()
|
|
@Min(1)
|
|
@Max(100)
|
|
limit = 20;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
query: string;
|
|
}
|