package entity import ( "time" "gitee.com/red-future---jilin-g/common/do" ) const StatReportCollection = "stat_report" // StatReport 统计报表实体 type StatReport struct { do.MongoBaseDO `bson:",inline" json:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted // 报表基本信息 AppID string `json:"appId"` // 应用ID (空字符串表示所有应用) ReportType string `json:"reportType"` // 报表类型:daily, weekly, monthly, quarterly, yearly ReportDate time.Time `json:"reportDate"` // 报表日期 GeneratedAt time.Time `json:"generatedAt"` // 生成时间 ReportData string `json:"reportData"` // 报表数据(JSON格式) // 状态信息 Status string `json:"status"` // 状态:generated, processing, completed }