feat: 完成对接接口
This commit is contained in:
@@ -9,21 +9,21 @@ import { del, get, post, put } from '@/utils/request';
|
||||
// 获取会话列表
|
||||
export function get_session_list(params: GetSessionListParams) {
|
||||
// return get<ChatSessionVo[]>('/system/session/list', params);
|
||||
return get<ChatSessionVo[]>('/prod-api/session', params);
|
||||
return get<ChatSessionVo[]>('/session', params);
|
||||
}
|
||||
// 创建会话
|
||||
export function create_session(data: CreateSessionDTO) {
|
||||
return post('/prod-api/session', data);
|
||||
return post('/session', data);
|
||||
}
|
||||
// 更新会话
|
||||
export function update_session(data: ChatSessionVo) {
|
||||
return put('/prod-api/session', data);
|
||||
return put(`/session/${data.id}`, data);
|
||||
}
|
||||
// 会话详情
|
||||
export function get_session(id: string) {
|
||||
return get<ChatSessionVo>(`/prod-api/session/${id}`);
|
||||
return get<ChatSessionVo>(`/session/${id}`);
|
||||
}
|
||||
// 删除会话
|
||||
export function delete_session(ids: string[]) {
|
||||
return del(`/prod-api/session/${ids}`);
|
||||
return del(`/session/${ids[0]}`);
|
||||
}
|
||||
|
||||
@@ -28,11 +28,11 @@ export interface GetSessionListParams {
|
||||
/**
|
||||
* 当前页数
|
||||
*/
|
||||
pageNum?: number;
|
||||
skipCount?: number;
|
||||
/**
|
||||
* 分页大小
|
||||
*/
|
||||
pageSize?: number;
|
||||
maxResultCount?: number;
|
||||
/**
|
||||
* 请求参数
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user