import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty } from 'class-validator';

export class LoginDto {
    @ApiProperty({type: String, required: true})
    @IsString()
    @IsNotEmpty()
    username: string;

    @ApiProperty({type: String, required: true})
    @IsString()
    @IsNotEmpty()
    password: string;
}