From 14b65352fae68df692fb7143480a03e4f4806ebc Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 07 十一月 2024 17:32:57 +0800 Subject: [PATCH] 生成分享链接 --- src/api/ai/chat.ts | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/src/api/ai/chat.ts b/src/api/ai/chat.ts index d7a9c9a..e74f3b5 100644 --- a/src/api/ai/chat.ts +++ b/src/api/ai/chat.ts @@ -1,3 +1,4 @@ +import request from '/@/utils/request'; import request, { streamReq } from '/@/utils/request'; const GET_SECTION_SAMPLE_API = '/scene/get_scene_group_sample'; const GET_SECTION_A_LIST_API = '/scene/get_scene_group_tree'; @@ -461,3 +462,43 @@ }, }); }; + +/** + * @description 灏嗗綋鍓嶅璇濆巻鍙插垎浜� + * @param {FormData} params + **/ +export const shareChatHistoryByPost = (params) => + request({ + url: `/chat/share_chat_history`, + method: 'post', + params: params, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + }); +/** + * @description 鏌ヨ寮傛缁撴灉 + * @param {FormData} params + **/ +export const shareAsyncQueryByPost = (params) => + request({ + url: `/chat/share_async_query`, + method: 'post', + params: params, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + }); +/** + * @description 灏嗗綋鍓嶅璇濆巻鍙插垎浜� + * @param {FormData} params + **/ +export const getShareChatJsonByPost = (params) => + request({ + url: `/chat/get_share_chat_json`, + method: 'post', + params: params, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + }); -- Gitblit v1.9.3