mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
NoteAuthorshipDto: Add doc comments
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
84143eec7d
commit
be2dc0e4d6
1 changed files with 25 additions and 0 deletions
|
@ -8,16 +8,41 @@ import { IsDate, IsNumber, IsString, Min } from 'class-validator';
|
||||||
import { UserInfoDto } from '../users/user-info.dto';
|
import { UserInfoDto } from '../users/user-info.dto';
|
||||||
|
|
||||||
export class NoteAuthorshipDto {
|
export class NoteAuthorshipDto {
|
||||||
|
/**
|
||||||
|
* Username of the user who authored this section
|
||||||
|
* @example "john.smith"
|
||||||
|
*/
|
||||||
@IsString()
|
@IsString()
|
||||||
userName: UserInfoDto['userName'];
|
userName: UserInfoDto['userName'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Character index of the start of this section
|
||||||
|
* @example 102
|
||||||
|
*/
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
@Min(0)
|
@Min(0)
|
||||||
startPos: number;
|
startPos: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Character index of the end of this section
|
||||||
|
* Must be greater than {@link startPos}
|
||||||
|
* @example 154
|
||||||
|
*/
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
@Min(0)
|
@Min(0)
|
||||||
endPos: number;
|
endPos: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Datestring of the time this section was created
|
||||||
|
* @example "2020-12-01 12:23:34"
|
||||||
|
*/
|
||||||
@IsDate()
|
@IsDate()
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Datestring of the last time this section was edited
|
||||||
|
* @example "2020-12-01 12:23:34"
|
||||||
|
*/
|
||||||
@IsDate()
|
@IsDate()
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue