All checks were successful
ci/woodpecker/push/ci Pipeline was successful
Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
18 lines
300 B
TypeScript
18 lines
300 B
TypeScript
import { Type } from "class-transformer";
|
|
import { IsInt, IsOptional, Max, Min } from "class-validator";
|
|
|
|
export class GetMessagesQueryDto {
|
|
@IsOptional()
|
|
@Type(() => Number)
|
|
@IsInt()
|
|
@Min(1)
|
|
@Max(200)
|
|
limit = 50;
|
|
|
|
@IsOptional()
|
|
@Type(() => Number)
|
|
@IsInt()
|
|
@Min(0)
|
|
skip = 0;
|
|
}
|