feat(chat): 实现联网搜索与对话管理功能
- 新增 OkHttp 客户端配置及依赖 - 添加 SearXNG 搜索引擎集成配置 - 创建基础分页查询类 BasePageQuery - 实现网络搜索增强顾问 NetworkSearchAdvisor - 增加聊天历史消息和对话的分页查询接口 - 添加对话摘要重命名与删除功能 - 配置 MyBatis Plus 分页插件支持 - 引入 Jsoup用于网页内容解析 - 新增 Hutool 工具库依赖 - 实现搜索结果内容抓取服务 - 添加搜索结果 DTO 和相关服务接口 - 扩展响应码枚举支持对话不存在情况 - 新增多个 VO 类用于请求和响应数据传输
This commit is contained in:
@@ -1,15 +1,48 @@
|
||||
package com.hanserwei.airobot.service;
|
||||
|
||||
import com.hanserwei.airobot.model.vo.chat.NewChatReqVO;
|
||||
import com.hanserwei.airobot.model.vo.chat.NewChatRspVO;
|
||||
import com.hanserwei.airobot.model.vo.chat.*;
|
||||
import com.hanserwei.airobot.utils.PageResponse;
|
||||
import com.hanserwei.airobot.utils.Response;
|
||||
|
||||
public interface ChatService {
|
||||
|
||||
/**
|
||||
* 新建对话
|
||||
*
|
||||
* @param newChatReqVO 新建对话请求参数
|
||||
* @return 新建对话结果
|
||||
*/
|
||||
Response<NewChatRspVO> newChat(NewChatReqVO newChatReqVO);
|
||||
|
||||
/**
|
||||
* 查询历史消息
|
||||
*
|
||||
* @param findChatHistoryMessagePageListReqVO 查询历史消息请求参数
|
||||
* @return 查询历史消息结果
|
||||
*/
|
||||
PageResponse<FindChatHistoryMessagePageListRspVO> findChatHistoryMessagePageList(FindChatHistoryMessagePageListReqVO findChatHistoryMessagePageListReqVO);
|
||||
|
||||
/**
|
||||
* 查询历史对话
|
||||
*
|
||||
* @param findChatHistoryPageListReqVO 查询历史对话请求参数
|
||||
* @return 查询历史对话结果
|
||||
*/
|
||||
PageResponse<FindChatHistoryPageListRspVO> findChatHistoryPageList(FindChatHistoryPageListReqVO findChatHistoryPageListReqVO);
|
||||
|
||||
/**
|
||||
* 重命名对话摘要
|
||||
*
|
||||
* @param renameChatReqVO 重命名对话摘要请求参数
|
||||
* @return 重命名对话摘要结果
|
||||
*/
|
||||
Response<?> renameChatSummary(RenameChatReqVO renameChatReqVO);
|
||||
|
||||
/**
|
||||
* 删除对话
|
||||
*
|
||||
* @param deleteChatReqVO 删除对话请求参数
|
||||
* @return 删除对话结果
|
||||
*/
|
||||
Response<?> deleteChat(DeleteChatReqVO deleteChatReqVO);
|
||||
}
|
||||
Reference in New Issue
Block a user