18 lines
820 B
Go
18 lines
820 B
Go
package entity
|
|
|
|
import "time"
|
|
|
|
// StatsDaily 运营总览日汇总(Day68:全平台一行/天,由 gateway 后台 60s ticker
|
|
// 增量 UPSERT;group/customer 口径走明细直查不落本表——大客户场景再扩账号维度)。
|
|
// Day 为 "2006-01-02" 字符串主键:MySQL/SQLite 统一按字符串比较排序,规避
|
|
// 时间类型方言差。
|
|
type StatsDaily struct {
|
|
Day string `gorm:"primaryKey;size:10" json:"day"`
|
|
Submitted int64 `json:"submitted"` // 提交量(全部明细行,含在途/拦截)
|
|
Success int64 `json:"success"` // 终态成功(status=2)
|
|
Failed int64 `json:"failed"` // 终态失败(status=3;未知4/拦截5不计成功率分母)
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`
|
|
}
|
|
|
|
func (StatsDaily) TableName() string { return "stats_daily" }
|