任意时间区间(月流量)统计,无视重启~

This commit is contained in:
naiba
2021-07-14 23:53:37 +08:00
parent dff1e29c40
commit 63bb1570d2
16 changed files with 290 additions and 77 deletions

View File

@@ -8,8 +8,8 @@ const CacheKeyOauth2State = "p:a:state"
const CacheKeyServicePage = "p:c:service"
type Common struct {
ID uint64 `gorm:"primary_key"`
CreatedAt time.Time
ID uint64 `gorm:"primary_key"`
CreatedAt time.Time `sql:"index"`
UpdatedAt time.Time
DeletedAt *time.Time `sql:"index"`
}