Files
cid/model/entity/stat_report.go

25 lines
828 B
Go
Raw Normal View History

2025-12-06 15:24:30 +08:00
package entity
import (
"time"
2025-12-18 17:51:33 +08:00
"gitee.com/red-future---jilin-g/common/do"
2025-12-06 15:24:30 +08:00
)
2025-12-18 17:51:33 +08:00
const StatReportCollection = "stat_report"
2025-12-06 15:24:30 +08:00
// StatReport 统计报表实体
type StatReport struct {
2025-12-18 17:51:33 +08:00
do.MongoBaseDO `bson:",inline" json:",inline"` // 嵌入基础字段Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
2025-12-06 15:24:30 +08:00
// 报表基本信息
2025-12-10 15:41:52 +08:00
AppID string `json:"appId"` // 应用ID (空字符串表示所有应用)
2025-12-06 15:24:30 +08:00
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
}