import type { OssLogListResponse } from '../types/ossLog'

export async function fetchDemandBelongOssLogs(): Promise<OssLogListResponse> {
  const res = await fetch('/api/demand-belong-oss-logs')
  if (!res.ok) {
    throw new Error(`加载归类过程日志失败: ${res.status} ${res.statusText}`)
  }
  return res.json()
}
