feat: auth dtos
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { IsNotEmpty } from "class-validator";
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class LoginDto {
|
||||
@ApiProperty()
|
||||
@IsNotEmpty()
|
||||
password: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNotEmpty()
|
||||
username: string;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { IsNotEmpty } from "class-validator";
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class RegisterDto {
|
||||
@ApiProperty()
|
||||
@IsNotEmpty()
|
||||
password: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@ApiProperty()
|
||||
username: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@ApiProperty()
|
||||
email: string;
|
||||
}
|
||||
Reference in New Issue
Block a user