package domain import ( "go.mongodb.org/mongo-driver/bson/primitive" ) type ShutdownStatisticsStatus string // 'error' | 'complete' // ShutdownStatisticsStatus枚举 const ( ShutdownStatisticsError ShutdownStatisticsStatus = "error" ShutdownStatisticsComplete ShutdownStatisticsStatus = "complete" ) type TaskShutdownStatistics struct { Id primitive.ObjectID `bson:"_id" json:"id"` Date string `bson:"date" json:"date"` } type ShutdownStatisticsItem struct { Id *primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Date string `bson:"date" json:"date"` Status ShutdownStatisticsStatus `bson:"status" json:"status"` SiteMap map[string]ShutdownStatisticsInfo `bson:"siteMap" json:"siteMap"` // SN: Info } type ShutdownStatisticsInfo struct { SiteAnalysisId *primitive.ObjectID `bson:"siteAnalysisId" json:"siteAnalysisId"` ShutdownTimeList []string `bson:"shutdownTimeList" json:"shutdownTimeList"` }