20 Commits

Author SHA1 Message Date
lixiangwuxian
c50ca47911 refactor: 优化数据库初始化逻辑,使用 sync.Once 确保 GormDB 只初始化一次,避免db查空 2025-07-05 16:58:04 +08:00
lixiangwuxian
e84d64100c feat: 从手写sql迁移至gorm 2025-07-05 15:46:36 +08:00
lixiangwuxian
bf63bec68f refactor: 将项目中的 gin 框架替换为 hertz 框架,更新相关处理器以适应新的上下文和请求处理方式 2025-06-28 21:15:23 +08:00
662add9c3e refactor: 更新模块路径,将所有引用的路径从旧的 git.lxtend.com/qqbot 更改为新的 git.lxtend.com/lixiangwuxian/qqbot 2025-06-11 19:13:52 +08:00
lixiangwuxian
b4e0ae21cb fix: 修改日志文件名为 log.txt,增加停止运行标志以避免主流程阻塞,并优化 DockerContainer 初始化逻辑以确保服务正常运行 2025-03-29 14:50:34 +08:00
f87922883e fix: Update configuration structure to include Management section for WebSocket and HTTP server addresses 2025-03-24 16:28:15 +08:00
lixiangwuxian
9d512fd4e3 feat: 添加 webserver 包并重构主函数以启动路由
- 新增 webserver/router.go 文件,定义了 Gin 服务器和相关路由
- 在 main.go 中调用 webserver.StartRouter() 启动路由
2025-03-13 04:42:29 +08:00
lixiangwuxian
95333b37e6 feat: 为主程序添加日志文件输出和详细异常捕获机制
- 在 init() 函数中创建 logs 目录
- 配置日志输出到 logs/panic.log 文件
- 增强异常捕获逻辑,记录完整的堆栈信息和时间戳
- 优化 panic 恢复处理,提供更详细的错误追踪信息
2025-03-09 21:54:21 +08:00
lixiangwuxian
79f62f1b7f refactor: 重构配置管理,使用强类型配置结构并更新相关代码 2025-03-08 17:08:28 +08:00
lixiangwuxian
9afe78301a chore: add import for works package in main.go to support new features and functionality 2025-01-15 15:08:40 +08:00
lixiangwuxian
72d2aad13e feat: update WebSocket client initialization to use dynamic server address from configuration 2025-01-09 01:26:39 +08:00
lixiangwuxian
52c33ec48a feat: implement WebSocket client reconnection logic and enhance client structure 2024-12-26 10:41:46 +08:00
lixiangwuxian
904a1fefff Merge branch 'main' of ssh://127.0.0.1:2222/lixiangwuxian/qq_bot 2024-10-25 01:38:21 +08:00
lixiangwuxian
28dec155f8 fix: docker运行添加转义符 2024-10-25 01:36:04 +08:00
lixiangwuxian
37161b4147 feat: 添加工单请求接口 2024-10-24 19:19:11 +08:00
lixiangwuxian
09adce96d9 feat: panic时避免崩溃 2024-10-20 01:23:48 +08:00
lixiangwuxian
ea3ef541e2 feat: 添加健康检查 2024-10-15 23:06:27 +08:00
lixiangwuxian
7aebdeae56 feat: 添加悲报 2024-10-11 00:13:42 +08:00
lixiangwuxian
c13b7f2068 feat: 添加喜报功能 2024-10-09 01:30:50 +08:00
lixiangwuxian
4d6c22ff7b init: 初始化仓库 2024-10-08 01:34:26 +08:00