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

This commit is contained in:
neverteaser
2021-03-20 22:38:22 +08:00
committed by dushixiang
parent caa4ff1ffb
commit d76f782a01
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()
}