refactor(chat): 重构聊天服务架构,引入Handler模式

主要变更:
1. 移除ruoyi-ai-copilot模块
2. 重构docker配置目录结构,统一迁移至docs/docker/
3. 聊天服务引入Handler模式:
   - 新增ChatHandler接口及多种实现
   - DefaultChatHandler: 默认聊天处理
   - AgentChatHandler: Agent模式处理
   - WorkflowChatHandler: 工作流处理
   - ResumeChatHandler: 恢复会话处理
   - ChatContextBuilder: 上下文构建器
4. 简化AbstractStreamingChatService和ChatServiceFacade代码
5. 优化各Provider实现,统一代码风格

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ageerle
2026-03-14 14:14:56 +08:00
parent e601eb6db5
commit 7c96c730e6
87 changed files with 988 additions and 12346 deletions

View File

@@ -47,7 +47,7 @@ public class UserLoginServiceImpl implements UserLoginService {
VisitorLoginUserDto loginUser = new VisitorLoginUserDto();
if (ObjectUtil.isNull(user)) {
SysUserBo sysUser = new SysUserBo();
String name = "用户" + UUID.randomUUID().toString().replace("-", "").substring(0, 7);
String name = "用户" + UUID.randomUUID().toString().replace("-", "").substring(0, 10);
// 设置默认用户名
sysUser.setUserName(name);
// 设置默认昵称