feat(dashboard): add admin user analytics and fix chart labels

- Add GET /api/data/users endpoint for user-grouped quota data (admin only)
- Add user consumption ranking (horizontal bar, top 10) and user consumption
  trend (area chart) tabs visible only to admin users
- Fix mislabeled "消耗趋势" tab to "调用趋势" (shows call counts, not quota)
- Add processUserData helper for user ranking and trend data extraction
- Add i18n keys for new tabs across all 7 locales
This commit is contained in:
CaIon
2026-04-08 15:44:01 +08:00
parent 9ffb85a36b
commit 606a4eee96
15 changed files with 287 additions and 7 deletions
+4
View File
@@ -3020,6 +3020,10 @@
"调用次数": "呼び出し回数",
"调用次数分布": "呼び出し回数分布",
"调用次数排行": "呼び出し回数ランキング",
"调用趋势": "呼び出し推移",
"模型排行": "モデルランキング",
"用户消耗排行": "ユーザー消費ランキング",
"用户消耗趋势": "ユーザー消費推移",
"调试信息": "デバッグ情報",
"谨慎": "注意",
"豆包": "豆包",