feat(文档管理): 添加文档状态更新和向量生成功能
refactor(话术管理): 重构话术列表和编辑界面,调整API路径 fix(请求拦截器): 移除调试日志并优化错误处理 style(分页组件): 格式化代码并添加初始化标记 feat(知识库): 实现文档状态切换和向量生成功能
This commit is contained in:
@@ -3,7 +3,7 @@ import request from '/@/utils/request';
|
||||
//获取话术列表
|
||||
export function getscriptList(data: object) {
|
||||
return request({
|
||||
url: '/customer-server/speechcraft/list',
|
||||
url: '/customer-server/scripted/speech/list',
|
||||
method: 'get',
|
||||
params: data,
|
||||
});
|
||||
@@ -12,7 +12,7 @@ export function getscriptList(data: object) {
|
||||
//增加话术
|
||||
export function addScript(data: object) {
|
||||
return request({
|
||||
url: '/customer-server/speechcraft/add',
|
||||
url: '/customer-server/scripted/speech/add',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
@@ -21,7 +21,7 @@ export function addScript(data: object) {
|
||||
//删除话术列表
|
||||
export function deleteScript(data: object) {
|
||||
return request({
|
||||
url: '/customer-server/speechcraft/delete',
|
||||
url: '/customer-server/scripted/speech/delete',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
@@ -30,8 +30,17 @@ export function deleteScript(data: object) {
|
||||
//更新话术列表
|
||||
export function updateScript(data: object) {
|
||||
return request({
|
||||
url: '/customer-server/speechcraft/update',
|
||||
url: '/customer-server/scripted/speech/update',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
//获取话术详情
|
||||
export function getScriptDetail(data: object) {
|
||||
return request({
|
||||
url: '/customer-server/scripted/speech/getOne',
|
||||
method: 'get',
|
||||
params: data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ export interface UpdateDocumentParams {
|
||||
fileSize?: number;
|
||||
format?: string;
|
||||
title?: string;
|
||||
status?: number;
|
||||
}
|
||||
|
||||
// 文档分段查询参数
|
||||
@@ -184,3 +185,12 @@ export function getDocumentProcess(id: string) {
|
||||
params: { id },
|
||||
});
|
||||
}
|
||||
|
||||
// 生成向量
|
||||
export function generateVector(id: string, datasetId: string) {
|
||||
return request({
|
||||
url: '/rag/document/vectorization',
|
||||
method: 'post',
|
||||
data: { id, datasetId },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user