fix(dashboard): prefer username in user usage trend

This commit is contained in:
wanXcode
2026-03-12 17:42:41 +08:00
parent 826090e099
commit 69cafe8674
4 changed files with 20 additions and 11 deletions

View File

@@ -96,6 +96,7 @@ type UserUsageTrendPoint struct {
Date string `json:"date"`
UserID int64 `json:"user_id"`
Email string `json:"email"`
Username string `json:"username"`
Requests int64 `json:"requests"`
Tokens int64 `json:"tokens"`
Cost float64 `json:"cost"` // 标准计费