feat(pwl):添加审计内容3初版
This commit is contained in:
31
src/api/ai/auditContent/index.ts
Normal file
31
src/api/ai/auditContent/index.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult } from '@/api';
|
||||
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;
|
||||
|
||||
const res = await request.post<ApiResult<any>>(
|
||||
MODULES_API_URL + '/ai/auditContent3/generateDecisionTable',
|
||||
null,
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data; // 返回整个响应数据,包括data字段
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
Reference in New Issue
Block a user