NestJS backend with Prisma, Docker Compose for Postgres/Redis, and deploy docs for the production VM.
21 lines
356 B
TypeScript
21 lines
356 B
TypeScript
import { Type } from 'class-transformer';
|
|
import { IsInt, IsOptional, IsString, Min } from 'class-validator';
|
|
|
|
export class ListContactSubmissionsDto {
|
|
@IsOptional()
|
|
@Type(() => Number)
|
|
@IsInt()
|
|
@Min(1)
|
|
page?: number;
|
|
|
|
@IsOptional()
|
|
@Type(() => Number)
|
|
@IsInt()
|
|
@Min(1)
|
|
pageSize?: number;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
q?: string;
|
|
}
|