Akizon77
bfac98dc67
feat: 添加过期通知功能,支持配置过期前通知天数
2025-06-27 22:28:42 +08:00
Akizon77
6e4e6d0653
feat: 添加对ip-api和geojs服务的支持,更新GeoIP配置
2025-06-27 21:20:31 +08:00
Akizon77
06ffc44530
refactor: 将time.Time 迁移到UTCTime
2025-06-27 13:53:03 +08:00
Akizon77
356e71ad22
feat: 添加PingTask的名称字段
2025-06-21 19:27:19 +08:00
Akizon77
d6b58f6eed
feat: 增加Ping任务管理功能
2025-06-21 16:47:39 +08:00
Akizon77
785f448baf
wip: ping task
...
fix: Cannot add a column with non-constant default
2025-06-20 22:40:03 +08:00
Akizon77
194987f66a
fix: 移除冷却时间检查
2025-06-20 22:28:30 +08:00
Akizon77
5022148fd9
feat: 可配置的历史记录保存时长
...
wip: PING 检测
2025-06-19 15:07:17 +08:00
Akizon77
65cf7b30c3
wip: Ping、TCPing、HTTPing
2025-06-19 14:31:03 +08:00
Akizon77
d6d716c5ab
fix: 修正通知开关字段的JSON标签拼写错误
2025-06-15 18:36:43 +08:00
Akizon77
d595acbde3
feat: 添加离线通知功能,每个服务器可以单独设置
2025-06-15 17:32:27 +08:00
Akizon77
bd2c67d725
wip: 添加负载和离线通知模型
2025-06-15 15:18:03 +08:00
Akizon77
b7a276dd05
feat: 添加在线和离线通知功能,支持冷却和宽限期设置
2025-06-15 00:03:25 +08:00
Akizon77
1674220340
feat: 在Clipboard模型中添加Weight字段
2025-06-14 13:01:53 +08:00
Akizon77
4863e623ae
wip: 命令剪切板
2025-06-13 22:14:58 +08:00
Akizon77
ac88159d56
feat: 为Client模型添加Currency,默认值为'$'
2025-06-13 21:28:50 +08:00
Akizon77
bbf631714d
feat: 添加双因素认证支持
2025-06-07 16:30:16 +08:00
Akizon77
a75ac3e97d
feat: session管理更加细致,识别UA、IP
2025-06-06 17:34:53 +08:00
Akizon77
00d8936455
feat: 添加日志记录功能,记录用户操作及相关信息
2025-06-06 15:00:35 +08:00
Akizon77
4b97ae92da
feat: 添加Telegram消息发送功能及GeoIP查询接口
2025-06-06 14:41:44 +08:00
Akizon77
09c346180e
feat: 允许禁止密码登录
...
refactor: 大致上应该错误都返回message
2025-06-05 17:54:40 +08:00
Akizon77
db26327140
feat: 添加上传和删除 favicon 的功能
2025-06-04 22:12:39 +08:00
Akizon77
403879e705
fix: 修复配置中的 CORS 列名错误
2025-06-04 19:15:21 +08:00
Akizon77
cbc91cfb0c
fix: 修复 CORS
2025-06-04 18:19:22 +08:00
Akizon77
44b1106dec
feat: task 存储数组
2025-06-04 17:31:39 +08:00
Akizon77
2cd1159f94
feat: 添加批量执行任务
2025-06-04 16:19:22 +08:00
Akizon77
fefdcee60d
refactor: 更新Client相关逻辑,迁移旧版ClientInfo数据并优化模型
2025-05-29 17:29:02 +08:00
Akizon77
a9f2c7658d
fix: 修复Session表的索引冲突并优化数据库清理逻辑
2025-05-27 16:21:56 +08:00
Akizon77
fb80e48010
feat: 添加数据库配置,支持MySQL,修改uuid类型为varchar(36),移除默认时间字段
2025-05-25 18:50:33 +08:00
Akizon77
6e65706a23
fix: 统一Record结构体字段名称以提高一致性
2025-05-15 20:33:11 +08:00
Akizon77
07ff3c1cfe
fix: 修改Config结构体中的字段名称以提高一致性
2025-05-12 16:57:47 +08:00
Akizon77
544aada3b9
fix : #28 修改Settings时如果不包含全部信息会导致丢失数据
2025-05-12 16:41:34 +08:00
Akizon77
97c1be7cb3
feat: 显示Agent版本号
2025-05-06 22:04:11 +08:00
Akizon77
d0b94abeb5
feat: #11 添加Geoip,Custom CSS、JS 合并为CustomHead
2025-05-03 20:41:04 +08:00
Akizon77
07d69a6423
feat: 添加CROS相关的配置
2025-04-29 14:00:24 +08:00
Akizon77
70a41b78cc
fix: 修复基础信息上报、ws上报
2025-04-28 21:58:54 +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
c3172059ef
添加对 komari_common 模块的支持,重构客户端管理功能
...
- 在 `go.mod` 中引入 `komari_common` 模块并进行路径替换。
- 更新 `GetMe` 函数以使用用户 UUID 获取用户名。
- 在 `AddClient` 和 `EditClient` 函数中重构客户端配置的处理逻辑,使用 `komari_common.ClientConfig`。
- 优化报告上传和获取功能,确保数据处理逻辑一致性。
- 增强错误处理,确保在数据库操作中更好地捕获和处理异常。
2025-04-18 00:41:00 +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