import { IsDefined, IsString, IsNotEmpty, IsEmail } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";

export class LoginAdminDto {
  @ApiProperty({ example: "admin@example.com" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  username: string;

  @ApiProperty({ example: "6~$*N+{g}gPH?q2D" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  password: string;
}
