Akizon77
837313e146
refactor: 替换logOperation为auditlog
2025-07-13 15:36:56 +08:00
Akizon77
fe3afceca9
feat: 终端添加日志
2025-06-06 15:54:42 +08:00
Akizon77
00d8936455
feat: 添加日志记录功能,记录用户操作及相关信息
2025-06-06 15:00:35 +08:00
Akizon77
09c346180e
feat: 允许禁止密码登录
...
refactor: 大致上应该错误都返回message
2025-06-05 17:54:40 +08:00
Akizon77
7b95e270b5
fix: 修复EditClient函数中UUID的处理逻辑
2025-05-29 18:07:03 +08:00
Akizon77
fefdcee60d
refactor: 更新Client相关逻辑,迁移旧版ClientInfo数据并优化模型
2025-05-29 17:29:02 +08:00
Akizon77
554caf7a37
fix: 数据库charset=utf8mb4
2025-05-27 22:12:52 +08:00
Akizon77
735a08ad75
fix: 添加public_remark字段
2025-05-15 21:07:59 +08:00
Akizon77
5d386a18e4
fix: 修复AddClient和EditClient函数中的JSON绑定和字段更新逻辑
2025-05-15 20:43:13 +08:00
Akizon77
8535b4ba7a
fix: # 26add client 可以指定名称
...
fix: 修改日志记录方式,避免在读取index.html失败时导致程序崩溃
2025-05-12 16:09:47 +08:00
Akizon77
2c3b5f7a47
feat: 添加OAuth功能及相关API接口
...
修改API路径
2025-05-08 20:13:31 +08:00
Akizon77
f189ee09ca
feat: #16 添加排序权重weight
...
EditClient接受字段Weight用于排序
2025-05-07 22:15:40 +08:00
Akizon77
204c434764
fix : #10 新增API /api/admin/clientToken 获取实例Token
2025-04-30 18:23:48 +08:00
Akizon77
550a4a7e98
feat: 移除部分遗留的ClientConfig
2025-04-30 18:20:23 +08:00
Akizon77
06ce36b854
fix : #6 [BUG] /api/admin/editClient 无法修改客户端名称
2025-04-30 13:19:11 +08:00
Akizon77
bd82d85431
fix: Docker 构建优化
...
feat: Github Actions
feat: 部分测试单元
style: 迁移akizon77到komari-monitor组织
2025-04-28 13:20:17 +08:00
Akizon77
cbabab1a20
新增 Dockerfile
...
新增 chpasswd 指令强制修改密码
修改 数据库init移入到server块
重命名 history 包至 records
2025-04-27 23:17:22 +08:00
Akizon77
2c2c81953e
移除 远程配置下发。
...
修改 客户端基本属性逻辑。
修改 最新上报key改为uuid
新增 客户端命名
新增 历史记录数据库压缩。
新增 在线节点信息。
新增 公开API /api/nodes 显示客户端基础属性
2025-04-27 18:57:37 +08:00
Akizon77
07ceb1b036
迁移komari-common到common
2025-04-27 17:28:39 +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