mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-22 04:31:06 +10:00
Add new page module and services; refactor existing entities
- Introduced a new page module with associated services. - Refactored TypeORM entities in user and workspace modules.
This commit is contained in:
18
server/src/core/page/dto/create-page.dto.ts
Normal file
18
server/src/core/page/dto/create-page.dto.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class CreatePageDto {
|
||||
@IsOptional()
|
||||
title?: string;
|
||||
|
||||
@IsOptional()
|
||||
content?: string;
|
||||
|
||||
@IsOptional()
|
||||
parentId?: string;
|
||||
|
||||
@IsString()
|
||||
creatorId: string;
|
||||
|
||||
@IsString()
|
||||
workspaceId: string;
|
||||
}
|
||||
4
server/src/core/page/dto/update-page.dto.ts
Normal file
4
server/src/core/page/dto/update-page.dto.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { PartialType } from '@nestjs/mapped-types';
|
||||
import { CreatePageDto } from './create-page.dto';
|
||||
|
||||
export class UpdatePageDto extends PartialType(CreatePageDto) {}
|
||||
Reference in New Issue
Block a user