修复main中的初始化
This commit is contained in:
4
main.go
4
main.go
@@ -2,8 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
"github.com/george518/PPGo_Job/controllers"
|
|
||||||
"github.com/george518/PPGo_Job/jobs"
|
|
||||||
_ "github.com/george518/PPGo_Job/mail"
|
_ "github.com/george518/PPGo_Job/mail"
|
||||||
"github.com/george518/PPGo_Job/models"
|
"github.com/george518/PPGo_Job/models"
|
||||||
_ "github.com/george518/PPGo_Job/routers"
|
_ "github.com/george518/PPGo_Job/routers"
|
||||||
@@ -16,8 +14,6 @@ const (
|
|||||||
func init() {
|
func init() {
|
||||||
//初始化数据模型
|
//初始化数据模型
|
||||||
models.Init()
|
models.Init()
|
||||||
jobs.InitJobs()
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user