-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class CreateArticleDto { | ||
@ApiProperty() | ||
readonly title!: string; | ||
@ApiProperty() | ||
readonly description!: string; | ||
@ApiProperty() | ||
readonly body!: string; | ||
@ApiProperty() | ||
readonly tagList!: string[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class CreateCommentDto { | ||
@ApiProperty() | ||
readonly body!: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty } from 'class-validator'; | ||
|
||
export class CreateUserDto { | ||
|
||
@IsNotEmpty() | ||
@ApiProperty() | ||
readonly username!: string; | ||
|
||
@IsNotEmpty() | ||
@ApiProperty() | ||
readonly email!: string; | ||
|
||
@IsNotEmpty() | ||
@ApiProperty() | ||
readonly password!: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty } from 'class-validator'; | ||
|
||
export class LoginUserDto { | ||
|
||
@IsNotEmpty() | ||
@ApiProperty() | ||
readonly email!: string; | ||
|
||
@IsNotEmpty() | ||
@ApiProperty() | ||
readonly password!: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class UpdateUserDto { | ||
@ApiProperty() | ||
readonly bio!: string; | ||
@ApiProperty() | ||
readonly email!: string; | ||
@ApiProperty() | ||
readonly image!: string; | ||
@ApiProperty() | ||
readonly username!: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters