fix(be):使用初始化init 初始化一些参数

This commit is contained in:
teaser
2021-03-20 22:38:22 +08:00
committed by dushixiang
parent 0bef7d3040
commit 95a50b332c
5 changed files with 20 additions and 6 deletions

View File

@ -21,3 +21,8 @@ type Security struct {
}
var Securities []*Security
func init() {
Cron = cron.New(cron.WithSeconds())
Cron.Start()
}