feat(system): add server startup time and uptime tracking

- Introduced `started_at` and `uptime_seconds` fields to the `SystemInfo` structure for tracking server boot time and uptime.
- Updated the `GetSystemInfo` handler to populate these new fields based on server runtime.
- Enhanced the frontend to display server startup time and uptime in the system information view, improving visibility for users.
- Added localization support for new labels and descriptions related to server uptime and startup time in multiple languages.
This commit is contained in:
wizardchen
2026-06-03 20:51:03 +08:00
committed by lyingbug
parent f57449419c
commit 226a37330c
12 changed files with 224 additions and 5 deletions
+8
View File
@@ -2202,6 +2202,14 @@ export default {
buildTimeDescription: "系统构建的时间",
goVersionLabel: "Go 版本",
goVersionDescription: "后端使用的 Go 语言版本",
startedAtLabel: "服务启动时间",
startedAtDescription: "当前后端进程最近一次启动的时刻",
uptimeLabel: "运行时长",
uptimeDescription: "自本次启动以来的连续运行时间",
uptimeDays: "{n} 天",
uptimeHours: "{n} 小时",
uptimeMinutes: "{n} 分钟",
uptimeSeconds: "{n} 秒",
dbVersionLabel: "数据库版本",
dbVersionDescription: "当前数据库迁移版本号",
dbMigrationFailedTag: "迁移失败",