Files
ppgo_job/main.go

29 lines
609 B
Go
Raw Permalink Normal View History

2018-07-13 17:53:34 +08:00
/************************************************************
** @Description: PPGo_Job2
** @Author: haodaquan
** @Date: 2018-06-05 22:24
** @Last Modified by: haodaquan
** @Last Modified time: 2018-06-05 22:24
*************************************************************/
2017-06-23 12:24:42 +08:00
package main
import (
"github.com/astaxie/beego"
2018-07-15 08:36:06 +08:00
"github.com/george518/PPGo_Job/jobs"
"github.com/george518/PPGo_Job/models"
_ "github.com/george518/PPGo_Job/routers"
2018-08-13 17:15:06 +08:00
"time"
2017-06-23 12:24:42 +08:00
)
func init() {
2019-07-03 22:31:27 +08:00
2017-06-23 12:24:42 +08:00
//初始化数据模型
2018-08-13 17:15:06 +08:00
var StartTime = time.Now().Unix()
models.Init(StartTime)
2017-07-05 16:21:38 +08:00
jobs.InitJobs()
2017-06-23 12:24:42 +08:00
}
func main() {
beego.Run()
2018-07-13 17:53:34 +08:00
}