From 87bce04d7cdf5ca427757071e7cc3b0847b64dfc Mon Sep 17 00:00:00 2001 From: gerson <1405270578@qq.com> Date: 星期一, 01 七月 2024 11:37:25 +0800 Subject: [PATCH] question 传 id --- src/api/ai/chat.ts | 75 +++++++++++++++++++++++++++++-------- 1 files changed, 59 insertions(+), 16 deletions(-) diff --git a/src/api/ai/chat.ts b/src/api/ai/chat.ts index 1b3935c..14056a1 100644 --- a/src/api/ai/chat.ts +++ b/src/api/ai/chat.ts @@ -148,28 +148,47 @@ }); }; -export const GetHistoryGroups = async (params, req: any = request) => { + +export const GetHistoryGroups = async (params, req:any = request) => { return req({ - url: '/history/get_history_groups', - method: 'POST', - data: params, - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - }, + url: "/history/get_history_groups", + method: "POST", + data: params, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, }); }; -export const QueryHistoryGroup = async (params, req: any = request) => { + + + + +export const DeleteHistoryGroups = async (params, req:any = request) => { return req({ - url: '/history/query_history_detail', - method: 'POST', - data: params, - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - }, + url: "/history/delete_history_group", + method: "POST", + data: params, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, }); }; -// 鑾峰彇AI瀵硅瘽娴嬭瘯渚嬪瓙鍒楄〃 + + + +export const QueryHistoryGroup = async (params, req:any = request) => { + return req({ + url: "/history/query_history_detail", + method: "POST", + data: params, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + }); + }; + + // 鑾峰彇AI瀵硅瘽娴嬭瘯渚嬪瓙鍒楄〃 export const getSelectSample = async (params, req: any = request) => { return req({ url: '/section/get_section_sample', @@ -179,4 +198,28 @@ 'Content-Type': 'application/x-www-form-urlencoded', }, }); -}; \ No newline at end of file +}; + + +export const GetHistoryAnswer= async (params, req:any = request) => { + return req({ + url: "/history/get_history_answer", + method: "POST", + data: params, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + }); + }; + + + export const QueryHistoryDetail = async (params, req:any = request) => { + return req({ + url: "/history/query_history_detail", + method: "POST", + data: params, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + }); + }; \ No newline at end of file -- Gitblit v1.9.3