Files
cid/model/entity/stat_report.go
2025-12-10 15:41:52 +08:00

27 lines
1.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
import (
"time"
)
// StatReport 统计报表实体
type StatReport struct {
Id string `json:"_id,omitempty" bson:"_id,omitempty"` // 主键ID
CreatedAt time.Time `json:"createdAt"` // 创建时间
UpdatedAt time.Time `json:"updatedAt"` // 更新时间
Creator string `json:"creator"` // 创建者
Updater string `json:"updater"` // 更新者
IsDeleted bool `json:"isDeleted"` // 是否删除
// 报表基本信息
TenantId int64 `json:"tenantId"` // 租户ID
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
}