feat: first commit
This commit is contained in:
13
server/src/common/dto/pagination.dto.ts
Normal file
13
server/src/common/dto/pagination.dto.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { IsOptional, Min } from 'class-validator';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
export class PaginationDto {
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@Min(1)
|
||||
public readonly page?: number = 1;
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
public readonly pageSize?: number = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user