import { AdminRole } from '../../domain/value-objects/admin-role.enum';

export class LoginDto {
  username: string;
  password: string;
}

export class CreateAdminDto {
  username: string;
  password: string;
  name: string;
  email?: string;
  phone?: string;
  role: AdminRole;
}

export class UpdateAdminDto {
  name?: string;
  email?: string;
  phone?: string;
  role?: AdminRole;
  isActive?: boolean;
}

export class ChangePasswordDto {
  oldPassword: string;
  newPassword: string;
}

export class ResetPasswordDto {
  newPassword: string;
}

export interface LoginResult {
  admin: {
    id: string;
    username: string;
    name: string;
    role: string;
    permissions: string[];
  };
  token: string;
  expiresIn: number;
}
