feat(pwl):优化生成审计内容3

This commit is contained in:
2025-10-23 16:00:06 +08:00
parent 48378e596c
commit 986d9b5f94
2 changed files with 1284 additions and 1292 deletions

View File

@@ -5,27 +5,20 @@ import { MODULES_API_URL } from '@/config/setting';
/**
* 生成重大经济决策调查表
*/
export async function generateDecisionTable(
kbIds?: string,
libraryIds?: string,
projectLibrary?: string
) {
const params: Record<string, any> = {};
if (kbIds) params.kbIds = kbIds;
if (libraryIds) params.libraryIds = libraryIds;
if (projectLibrary) params.projectLibrary = projectLibrary;
export async function generateDecisionTable(data: {
kbIds?: string;
libraryIds?: string;
projectLibrary?: string;
history?: string;
suggestion?: string;
}) {
const res = await request.post<ApiResult<any>>(
MODULES_API_URL + '/ai/auditContent3/generateDecisionTable',
null,
{
params
}
data
);
if (res.data.code === 0) {
return res.data; // 返回整个响应数据包括data字段
return res.data;
}
return Promise.reject(new Error(res.data.message));
}

File diff suppressed because it is too large Load Diff