- Brief 支持代理商附件上传 (迁移 007) - 项目新增 platform 字段 (迁移 008),前端创建/展示平台信息 - 修复 AI 规则解析:处理中文引号导致 JSON 解析失败的问题 - 修复消息中心崩溃:补全后端消息类型映射 + fallback 保护 - 项目创建时自动发送消息通知 - .gitignore 排除 backend/data/ 数据库文件 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
52 lines
972 B
TypeScript
52 lines
972 B
TypeScript
/**
|
|
* 项目相关类型定义
|
|
* 与后端 ProjectResponse 对齐
|
|
*/
|
|
|
|
export interface AgencySummary {
|
|
id: string
|
|
name: string
|
|
logo?: string | null
|
|
}
|
|
|
|
export interface ProjectResponse {
|
|
id: string
|
|
name: string
|
|
description?: string | null
|
|
platform?: string | null
|
|
brand_id: string
|
|
brand_name?: string | null
|
|
status: string
|
|
start_date?: string | null
|
|
deadline?: string | null
|
|
agencies: AgencySummary[]
|
|
task_count: number
|
|
created_at: string
|
|
updated_at: string
|
|
}
|
|
|
|
export interface ProjectListResponse {
|
|
items: ProjectResponse[]
|
|
total: number
|
|
page: number
|
|
page_size: number
|
|
}
|
|
|
|
export interface ProjectCreateRequest {
|
|
name: string
|
|
description?: string
|
|
platform?: string
|
|
start_date?: string
|
|
deadline?: string
|
|
agency_ids?: string[]
|
|
}
|
|
|
|
export interface ProjectUpdateRequest {
|
|
name?: string
|
|
description?: string
|
|
platform?: string
|
|
start_date?: string
|
|
deadline?: string
|
|
status?: 'active' | 'completed' | 'archived'
|
|
}
|