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

This commit is contained in:
电摇小子 committed 2026-07-14 11:07:35 +08:00
1 parent 1d3a2ee181
commit 762af8dd95
16 files changed
+1488 -41

No files matched your search

+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
}