Your Name a32102f583 feat: 补全后端 API 并对齐前后端类型
- 后端新增: 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>
2026-02-09 14:13:08 +08:00

53 lines
1.1 KiB
TypeScript

/**
* Brief 相关类型定义
* 与后端 BriefResponse 对齐
*/
export interface BriefAttachment {
id: string
name: string
url: string
size?: string
}
export interface SellingPoint {
content: string
required: boolean
}
export interface BlacklistWord {
word: string
reason: string
}
export interface BriefResponse {
id: string
project_id: string
project_name?: string | null
file_url?: string | null
file_name?: string | null
selling_points?: SellingPoint[] | null
blacklist_words?: BlacklistWord[] | null
competitors?: string[] | null
brand_tone?: string | null
min_duration?: number | null
max_duration?: number | null
other_requirements?: string | null
attachments?: BriefAttachment[] | null
created_at: string
updated_at: string
}
export interface BriefCreateRequest {
file_url?: string
file_name?: string
selling_points?: SellingPoint[]
blacklist_words?: BlacklistWord[]
competitors?: string[]
brand_tone?: string
min_duration?: number
max_duration?: number
other_requirements?: string
attachments?: BriefAttachment[]
}