import { requestClient } from '#/api/request';

/**
 * AI 生成记录管理 API
 * 路由前缀 ai-generation/
 */
const prefix = 'ai-generation/';

/** 分页列表 */
export async function getAiGenerationList(data: any) {
  return requestClient.get<any>(`${prefix}list`, { params: data });
}

/** 详情 */
export async function getAiGenerationDetail(id: number) {
  return requestClient.get<any>(`${prefix}detail`, { params: { id } });
}

/** 用量统计（与 list 相同筛选） */
export async function getAiGenerationUsageStats(data?: Record<string, any>) {
  return requestClient.get<any>(`${prefix}usage-stats`, { params: data || {} });
}
