fix: 增加对话token显示,token消耗统计

This commit is contained in:
Gsh
2025-08-10 00:56:44 +08:00
parent a9c3a1bcec
commit 3eb27c3d35
10 changed files with 545 additions and 37 deletions

View File

@@ -19,3 +19,12 @@ export function getApiKey() {
export function getRechargeLog() {
return get<any>('/recharge/account').json();
}
// 查询用户近7天token消耗
export function getLast7DaysTokenUsage() {
return get<any>('/usage-statistics/last7Days-token-usage').json();
}
// 查询用户token消耗各模型占比
export function getModelTokenUsage() {
return get<any>('/usage-statistics/model-token-usage').json();
}