8 Commits

Author SHA1 Message Date
Akizon77
bbf631714d feat: 添加双因素认证支持 2025-06-07 16:30:16 +08:00
Akizon77
95cf1d78d0 feat: 添加SSO相关信息返回 2025-05-29 17:51:04 +08:00
Akizon77
4c65049bd8 fix: #7 [BUG] 获取Username时应该额外使用一个字段判断是否登录 2025-04-30 13:27:18 +08:00
Akizon77
bd82d85431 fix: Docker 构建优化
feat: Github Actions
feat: 部分测试单元
style: 迁移akizon77到komari-monitor组织
2025-04-28 13:20:17 +08:00
Akizon77
c3172059ef 添加对 komari_common 模块的支持,重构客户端管理功能
- 在 `go.mod` 中引入 `komari_common` 模块并进行路径替换。
- 更新 `GetMe` 函数以使用用户 UUID 获取用户名。
- 在 `AddClient` 和 `EditClient` 函数中重构客户端配置的处理逻辑,使用 `komari_common.ClientConfig`。
- 优化报告上传和获取功能,确保数据处理逻辑一致性。
- 增强错误处理,确保在数据库操作中更好地捕获和处理异常。
2025-04-18 00:41:00 +08:00
Akizon77
59a1e2f070 更新模块路径为 GitHub 地址,统一导入路径格式 2025-04-16 14:32:06 +08:00
Akizon77
9f7758f1da Refactor database structure and session management
- Removed legacy session management code from `session.go` and `sqlite3.go`.
- Introduced new `accounts` package for user and session management.
- Implemented GORM for database interactions, replacing raw SQL queries.
- Created models for `User`, `Session`, `Client`, `History`, and other entities.
- Added functions for creating, retrieving, and deleting sessions.
- Implemented automatic cleanup of old history records.
- Updated `main.go` to initialize the database and create a default admin account.
- Enhanced error handling and logging throughout the database operations.
2025-04-15 21:14:55 +08:00
Akizon77
95c080d110 feat: 实现 Komari 服务器监控工具的基本功能
- 添加用户认证和权限控制
- 实现客户端管理功能,包括添加、编辑和删除客户端
- 支持客户端上传基础信息和监控报告
- 提供基本的自定义配置功能
- 实现数据库初始化和数据存储
2025-04-12 22:48:38 +08:00