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-13 17:53:34 +08:00
|
|
|
"github.com/george518/PPGo_Job2/jobs"
|
|
|
|
|
"github.com/george518/PPGo_Job2/models"
|
|
|
|
|
_ "github.com/george518/PPGo_Job2/routers"
|
2017-06-23 12:24:42 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
VERSION = "1.0.0"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
//初始化数据模型
|
|
|
|
|
models.Init()
|
2017-07-05 16:21:38 +08:00
|
|
|
jobs.InitJobs()
|
2017-06-23 12:24:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func main() {
|
2017-07-06 10:27:30 +08:00
|
|
|
beego.BConfig.WebConfig.Session.SessionOn = true
|
2017-06-23 12:24:42 +08:00
|
|
|
beego.Run()
|
2018-07-13 17:53:34 +08:00
|
|
|
}
|