ny
22 小时以前 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { defHttp } from '#/api/request';
 
enum Api {
  Prefix = '/api/system/Aichat',
}
 
// ai发送对话
export function sendChat(data) {
  return defHttp.post({ url: `${Api.Prefix}/send`, data });
}
// ai会话列表
export function getHistoryList() {
  return defHttp.get({ url: `${Api.Prefix}/history/list` });
}
// ai会话记录
export function getHistoryInfoList(id) {
  return defHttp.get({ url: `${Api.Prefix}/history/get/${id}` });
}
// 保存历史记录
export function saveHistory(data) {
  return defHttp.post({ url: `${Api.Prefix}/history/save`, data });
}
// 删除历史记录
export function deleteHistory(id) {
  return defHttp.delete({ url: `${Api.Prefix}/history/delete/${id}` });
}