import { apiGet } from '@/lib/http'
import type { AdminAuditLogItem, AdminPagination } from '@/types/admin'

export function fetchAdminAuditLogs(params?: Record<string, unknown>) {
  return apiGet<{ items: AdminAuditLogItem[]; pagination: AdminPagination }>(
    '/api/v1/admin/audit-logs',
    params,
  )
}
