-
Notifications
You must be signed in to change notification settings - Fork 392
/
main.go
28 lines (24 loc) · 609 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/************************************************************
** @Description: PPGo_Job2
** @Author: haodaquan
** @Date: 2018-06-05 22:24
** @Last Modified by: haodaquan
** @Last Modified time: 2018-06-05 22:24
*************************************************************/
package main
import (
"github.com/astaxie/beego"
"github.com/george518/PPGo_Job/jobs"
"github.com/george518/PPGo_Job/models"
_ "github.com/george518/PPGo_Job/routers"
"time"
)
func init() {
//初始化数据模型
var StartTime = time.Now().Unix()
models.Init(StartTime)
jobs.InitJobs()
}
func main() {
beego.Run()
}