diff --git a/back/src/auth/dto/login.dto.ts b/back/src/auth/dto/login.dto.ts new file mode 100644 index 0000000..78d3526 --- /dev/null +++ b/back/src/auth/dto/login.dto.ts @@ -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; +} diff --git a/back/src/auth/dto/register.dto.ts b/back/src/auth/dto/register.dto.ts new file mode 100644 index 0000000..d8dd9a8 --- /dev/null +++ b/back/src/auth/dto/register.dto.ts @@ -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; +}