- 后端新增: Project CRUD / Brief CRUD / 组织关系管理 / 工作台统计 / SSE 推送 / 认证依赖注入 - 后端完善: 任务 API 全流程(创建/审核/申诉) + Task Service + Task Schema - 前端修复: login 页面 localStorage key 错误 (miaosi_auth -> miaosi_user) - 前端对齐: types/task.ts 与后端 TaskStage/TaskResponse 完全对齐 - 前端新增: project/brief/organization/dashboard 类型定义 - 前端补全: api.ts 新增 30+ API 方法覆盖所有后端接口 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
37 lines
699 B
TypeScript
37 lines
699 B
TypeScript
/**
|
|
* 工作台统计类型定义
|
|
* 与后端 Dashboard schemas 对齐
|
|
*/
|
|
|
|
export interface ReviewCount {
|
|
script: number
|
|
video: number
|
|
}
|
|
|
|
export interface CreatorDashboard {
|
|
total_tasks: number
|
|
pending_script: number
|
|
pending_video: number
|
|
in_review: number
|
|
completed: number
|
|
rejected: number
|
|
}
|
|
|
|
export interface AgencyDashboard {
|
|
pending_review: ReviewCount
|
|
pending_appeal: number
|
|
today_passed: ReviewCount
|
|
in_progress: ReviewCount
|
|
total_creators: number
|
|
total_tasks: number
|
|
}
|
|
|
|
export interface BrandDashboard {
|
|
total_projects: number
|
|
active_projects: number
|
|
pending_review: ReviewCount
|
|
total_agencies: number
|
|
total_tasks: number
|
|
completed_tasks: number
|
|
}
|