重新实现套餐相关功能

This commit is contained in:
GoEdgeLab
2023-09-06 16:31:14 +08:00
parent 87a5aee982
commit fcf7032324
16 changed files with 1600 additions and 972 deletions

View File

@@ -38,6 +38,12 @@ type DatabaseConfig struct {
} `json:"clean"`
} `json:"userBandwidthStat"`
UserPlanBandwidthStat struct {
Clean struct {
Days int `json:"days"`
} `json:"clean"`
} `json:"userPlanBandwidthStat"`
NodeClusterTrafficDailyStat struct {
Clean struct {
Days int `json:"days"`
@@ -77,6 +83,7 @@ func NewDatabaseConfig() *DatabaseConfig {
config.ServerBandwidthStat.Clean.Days = 100
config.ServerDailyStat.Clean.Days = 60
config.UserBandwidthStat.Clean.Days = 100
config.UserPlanBandwidthStat.Clean.Days = 100
config.NodeClusterTrafficDailyStat.Clean.Days = 30
config.NodeTrafficHourlyStat.Clean.Days = 15
config.ServerDomainHourlyStat.Clean.Days = 7