import { IsEmail, IsString, MinLength, MaxLength } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class AdminLoginDto {
  @ApiProperty({ description: '管理员邮箱', example: 'admin@longde.cloud' })
  @IsEmail()
  @MaxLength(255)
  email: string;

  @ApiProperty({ description: '密码', example: 'Str0ngP@ss!' })
  @IsString()
  @MinLength(8)
  @MaxLength(128)
  password: string;
}
