8064b64ff5
1. 修正上传端点schema命名:新增UploadAssetRequest模型替代自动生成的Body_upload_asset名称 2. 清理认证重复端点:移除/forgot-password和/reset-password旧路由,保留/password/forgot和/password/reset 3. 清理workspace_id残留:从edit_plan/asset_diagnosis/task_center/project_title等schema中移除,project_management和projects中改为可选 4. 更新README:移除过时的多租户/订阅/refresh token描述,修正仓库地址为git.xiaoxiajianji.com,更新API路径列表
34 lines
680 B
Python
34 lines
680 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class AssetSmartViewItem(BaseModel):
|
|
key: str
|
|
label: str
|
|
count: int
|
|
description: str
|
|
|
|
|
|
class AssetGapItem(BaseModel):
|
|
key: str
|
|
severity: str
|
|
message: str
|
|
recommendation: str
|
|
|
|
|
|
class ProjectAssetDiagnosisResponse(BaseModel):
|
|
project_id: str
|
|
readiness_score: int
|
|
readiness_label: str
|
|
total_assets: int
|
|
ready_assets: int
|
|
video_assets: int
|
|
image_assets: int
|
|
voice_assets: int
|
|
total_duration_seconds: float
|
|
estimated_video_count: int
|
|
used_assets: int
|
|
unused_assets: int
|
|
pending_review_assets: int
|
|
smart_views: list[AssetSmartViewItem]
|
|
gaps: list[AssetGapItem]
|