feat: 实现 AI 日报历史资产化

This commit is contained in:
电摇小子
2026-07-14 11:07:35 +08:00
committed by 电摇小子
parent 16a9aed6bb
commit c291c94bd8
16 changed files with 1488 additions and 41 deletions
+42
View File
@@ -0,0 +1,42 @@
export type ReportAssetStatus = 'ready' | 'missing'
export interface GeneratedReportRecord {
id: string
contactId: string
contactName: string
contactAvatar?: string
dateRange: string
messageCount: number
generatedAt: string
reportDate: string
htmlPath?: string
pngPath?: string
jsonPath?: string
htmlStatus: ReportAssetStatus
pngStatus: ReportAssetStatus
generatedImage?: string
}
export interface SaveGeneratedReportRequest {
contactId: string
contactName: string
contactAvatar?: string
dateRange: string
messageCount: number
generatedAt: string
generatedImage?: string
htmlPath?: string
pngPath?: string
}
export interface ReportHistoryResult {
success: boolean
reports?: GeneratedReportRecord[]
error?: string
}
export interface SaveGeneratedReportResult {
success: boolean
record?: GeneratedReportRecord
error?: string
}