import { adminRequest } from "@/lib/admin-http";


import type { AdminAuditLogListData } from "@/types/api/admin-audit";

const A = `/admin`;

export async function getAdminAuditLogs(params?: {
  page?: number;
  per_page?: number;
  module_code?: string;
  action_code?: string;
  operator_type?: string;
  operator_id?: number;
  start_date?: string;
  end_date?: string;
}): Promise<AdminAuditLogListData> {
  return adminRequest.get<AdminAuditLogListData>(`${A}/audit-logs`, {
    params,
  });
}
