From 39bfc3d7860c0eea73eef8c5815f5640eb91c4c2 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Mon, 5 May 2025 16:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=B1=8F=E8=94=BD=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E5=8E=86=E5=8F=B2=E7=AE=A1=E7=90=86=EF=BC=88=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/apis/auth_api.js | 54 ++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/web/src/apis/auth_api.js b/web/src/apis/auth_api.js index 92010820..1e2f34b7 100644 --- a/web/src/apis/auth_api.js +++ b/web/src/apis/auth_api.js @@ -92,36 +92,36 @@ export const chatApi = { */ getTools: () => apiGet('/api/chat/tools', {}, true), - /** - * 获取对话历史 - * @returns {Promise} - 对话历史列表 - */ - getConversations: () => apiGet('/api/chat/conversations', {}, true), + // /** + // * 获取对话历史 + // * @returns {Promise} - 对话历史列表 + // */ + // getConversations: () => apiGet('/api/chat/conversations', {}, true), - /** - * 获取特定对话 - * @param {string} conversationId - 对话ID - * @returns {Promise} - 对话详情 - */ - getConversation: (conversationId) => - apiGet(`/api/chat/conversations/${conversationId}`, {}, true), + // /** + // * 获取特定对话 + // * @param {string} conversationId - 对话ID + // * @returns {Promise} - 对话详情 + // */ + // getConversation: (conversationId) => + // apiGet(`/api/chat/conversations/${conversationId}`, {}, true), - /** - * 删除对话 - * @param {string} conversationId - 对话ID - * @returns {Promise} - 删除结果 - */ - deleteConversation: (conversationId) => - apiDelete(`/api/chat/conversations/${conversationId}`, {}, true), + // /** + // * 删除对话 + // * @param {string} conversationId - 对话ID + // * @returns {Promise} - 删除结果 + // */ + // deleteConversation: (conversationId) => + // apiDelete(`/api/chat/conversations/${conversationId}`, {}, true), - /** - * 更新对话标题 - * @param {string} conversationId - 对话ID - * @param {string} title - 新标题 - * @returns {Promise} - 更新结果 - */ - updateConversationTitle: (conversationId, title) => - apiPost(`/api/chat/conversations/${conversationId}/title`, { title }, {}, true), + // /** + // * 更新对话标题 + // * @param {string} conversationId - 对话ID + // * @param {string} title - 新标题 + // * @returns {Promise} - 更新结果 + // */ + // updateConversationTitle: (conversationId, title) => + // apiPost(`/api/chat/conversations/${conversationId}/title`, { title }, {}, true), } // 用户设置API