mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 09:45:37 -04:00
Rename NoteAuthorshipDto to EditDto
After Authorship was renamed to Edit, the DTO should follow. The file is also moved to the revisions folder, where the entity already is. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
62e0530d2b
commit
09329ae360
2 changed files with 4 additions and 4 deletions
|
@ -1,54 +0,0 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { IsDate, IsNumber, IsString, Min } from 'class-validator';
|
||||
import { UserInfoDto } from '../users/user-info.dto';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class NoteAuthorshipDto {
|
||||
/**
|
||||
* Username of the user who authored this section
|
||||
* @example "john.smith"
|
||||
*/
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
userName: UserInfoDto['userName'];
|
||||
|
||||
/**
|
||||
* Character index of the start of this section
|
||||
* @example 102
|
||||
*/
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
@ApiProperty()
|
||||
startPos: number;
|
||||
|
||||
/**
|
||||
* Character index of the end of this section
|
||||
* Must be greater than {@link startPos}
|
||||
* @example 154
|
||||
*/
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
@ApiProperty()
|
||||
endPos: number;
|
||||
|
||||
/**
|
||||
* Datestring of the time this section was created
|
||||
* @example "2020-12-01 12:23:34"
|
||||
*/
|
||||
@IsDate()
|
||||
@ApiProperty()
|
||||
createdAt: Date;
|
||||
|
||||
/**
|
||||
* Datestring of the last time this section was edited
|
||||
* @example "2020-12-01 12:23:34"
|
||||
*/
|
||||
@IsDate()
|
||||
@ApiProperty()
|
||||
updatedAt: Date;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue