mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 18:25:21 -04:00
Notes: Add NoteMediaDeletionDto
This is used to specify if the media uploads should be kept or deleted, when deleting a note. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
87e0ca54e1
commit
17b442aff1
1 changed files with 18 additions and 0 deletions
18
src/notes/note.media-deletion.dto.ts
Normal file
18
src/notes/note.media-deletion.dto.ts
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
import { IsBoolean } from 'class-validator';
|
||||||
|
import { ApiProperty } from '@nestjs/swagger';
|
||||||
|
|
||||||
|
export class NoteMediaDeletionDto {
|
||||||
|
/**
|
||||||
|
* Should the associated mediaUploads be keept
|
||||||
|
* @default false
|
||||||
|
* @example false
|
||||||
|
*/
|
||||||
|
@IsBoolean()
|
||||||
|
@ApiProperty()
|
||||||
|
keepMedia: boolean;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue