feat(home page): optimize the statistical interface

This commit is contained in:
谢俊男
2026-01-05 14:38:36 +08:00
parent a07e151c95
commit c8b6e22143
4 changed files with 97 additions and 30 deletions

View File

@@ -8,13 +8,18 @@ from app.core.api_key_utils import datetime_to_timestamp
class HomeStatistics(BaseModel):
"""首页统计数据"""
total_models: int
new_models_this_month: int
total_llm: int
total_embedding: int
model_week_growth_rate: float
active_workspaces: int
new_workspaces_this_month: int
new_workspaces_this_week: int
workspace_week_growth_rate: float
total_users: int
new_users_this_month: int
new_users_this_week: int
user_week_growth_rate: float
running_apps: int
new_apps_this_week: int
app_week_growth_rate: float
class WorkspaceInfo(BaseModel):
"""工作空间信息"""