Merge pull request #5243 from wucm667/feat/issue-5240-dashboard-username

fix(dashboard): show usernames in spending ranking
This commit is contained in:
Wesley Liddick authored and GitHub committed 2026-08-04 16:15:21 +08:00
commit 9b4575e434
6 files changed
+40 -22

No files matched your search

@@ -149,6 +149,7 @@ type UserUsageTrendPoint struct {
type UserSpendingRankingItem struct {
UserID int64 `json:"user_id"`
Email string `json:"email"`
Username string `json:"username"`
ActualCost float64 `json:"actual_cost"` // 实际扣除
Requests int64 `json:"requests"`
Tokens int64 `json:"tokens"`