Your Name 4c9b2f1263 feat: Brief附件/项目平台/规则AI解析/消息中心修复 + 项目创建通知
- Brief 支持代理商附件上传 (迁移 007)
- 项目新增 platform 字段 (迁移 008),前端创建/展示平台信息
- 修复 AI 规则解析:处理中文引号导致 JSON 解析失败的问题
- 修复消息中心崩溃:补全后端消息类型映射 + fallback 保护
- 项目创建时自动发送消息通知
- .gitignore 排除 backend/data/ 数据库文件

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 19:00:03 +08:00

55 lines
1.2 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
agency_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[]
agency_attachments?: BriefAttachment[]
}