AcadeDoc/server/src/core/page/dto/create-page.dto.ts
Philipinho 2689b267cf sidebar page tree
* frontend and backend implementation
2023-10-15 01:01:17 +01:00

19 lines
295 B
TypeScript

import { IsOptional, IsString, IsUUID } from 'class-validator';
export class CreatePageDto {
@IsOptional()
@IsUUID()
id?: string;
@IsOptional()
@IsString()
title?: string;
@IsOptional()
@IsString()
content?: string;
@IsOptional()
@IsString()
parentPageId?: string;
}