新增定时任务封装以及配置自动清理数据库功能

新增
- server/config/timer.go
- server/initialize/timer.go
- server/utils/db_automation.go
- server/utils/timer/timed_task.go
修改
- server/config.yaml
- server/config/config/go
- server/global/global.go
- server/main.go
This commit is contained in:
songzhibin97
2021-04-17 14:50:44 +08:00
parent eb1911232b
commit 2b0a565120
9 changed files with 197 additions and 2 deletions
+1
View File
@@ -18,4 +18,5 @@ type Server struct {
AliyunOSS AliyunOSS `mapstructure:"aliyun-oss" json:"aliyunOSS" yaml:"aliyun-oss"`
TencentCOS TencentCOS `mapstructure:"tencent-cos" json:"tencentCOS" yaml:"tencent-cos"`
Excel Excel `mapstructure:"excel" json:"excel" yaml:"excel"`
Timer Timer `mapstructure:"timer" json:"timer" yaml:"timer"`
}