From accc566aef4b680903e9302a1f6db5c83c6054e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=A4=A7=E5=85=A8?= Date: Fri, 23 Jun 2017 13:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8=E5=AE=89?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/common.go | 4 ++-- controllers/group.go | 4 ++-- controllers/main.go | 6 +++--- controllers/task.go | 8 ++++---- jobs/cron.go | 2 +- jobs/init.go | 2 +- jobs/job.go | 4 ++-- main.go | 8 ++++++-- 8 files changed, 21 insertions(+), 17 deletions(-) diff --git a/controllers/common.go b/controllers/common.go index d3913591..e9f225b9 100644 --- a/controllers/common.go +++ b/controllers/common.go @@ -7,9 +7,9 @@ package controllers import ( - "github.com/PPGo_Job/libs" - "github.com/PPGo_Job/models" "github.com/astaxie/beego" + "github.com/george518/PPGo_Job/libs" + "github.com/george518/PPGo_Job/models" "strconv" "strings" ) diff --git a/controllers/group.go b/controllers/group.go index ecec9e63..10d0bf88 100644 --- a/controllers/group.go +++ b/controllers/group.go @@ -8,9 +8,9 @@ package controllers import ( - "PPGo_Job/libs" - "PPGo_Job/models" "github.com/astaxie/beego" + "github.com/george518/PPGo_Job/libs" + "github.com/george518/PPGo_Job/models" "strconv" "strings" ) diff --git a/controllers/main.go b/controllers/main.go index 20623973..492fd056 100644 --- a/controllers/main.go +++ b/controllers/main.go @@ -7,11 +7,11 @@ package controllers import ( - "github.com/PPGo_Job/jobs" - "github.com/PPGo_Job/libs" - "github.com/PPGo_Job/models" "github.com/astaxie/beego" "github.com/astaxie/beego/utils" + "github.com/george518/PPGo_Job/jobs" + "github.com/george518/PPGo_Job/libs" + "github.com/george518/PPGo_Job/models" "runtime" "strconv" "strings" diff --git a/controllers/task.go b/controllers/task.go index 42b89c0a..2c982d07 100644 --- a/controllers/task.go +++ b/controllers/task.go @@ -8,11 +8,11 @@ package controllers import ( - crons "github.com/PPGo_Job/crons" - "github.com/PPGo_Job/jobs" - "github.com/PPGo_Job/libs" - "github.com/PPGo_Job/models" "github.com/astaxie/beego" + crons "github.com/george518/PPGo_Job/crons" + "github.com/george518/PPGo_Job/jobs" + "github.com/george518/PPGo_Job/libs" + "github.com/george518/PPGo_Job/models" "strconv" "strings" "time" diff --git a/jobs/cron.go b/jobs/cron.go index 5470079f..714a2da8 100644 --- a/jobs/cron.go +++ b/jobs/cron.go @@ -8,8 +8,8 @@ package jobs import ( - "PPGo_Job/crons" "github.com/astaxie/beego" + "github.com/george518/PPGo_Job/crons" "sync" ) diff --git a/jobs/init.go b/jobs/init.go index 3e9137cf..54850cbb 100644 --- a/jobs/init.go +++ b/jobs/init.go @@ -9,8 +9,8 @@ package jobs import ( "fmt" - "github.com/PPGo_Job/models" "github.com/astaxie/beego" + "github.com/george518/PPGo_Job/models" "os/exec" "time" ) diff --git a/jobs/job.go b/jobs/job.go index 82402a99..82f4a61c 100644 --- a/jobs/job.go +++ b/jobs/job.go @@ -10,9 +10,9 @@ package jobs import ( "bytes" "fmt" - "github.com/PPGo_Job/mail" - "github.com/PPGo_Job/models" "github.com/astaxie/beego" + "github.com/george518/PPGo_Job/mail" + "github.com/george518/PPGo_Job/models" "html/template" "os/exec" "runtime/debug" diff --git a/main.go b/main.go index fac9ec3b..519cde87 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,12 @@ package main import ( - "github.com/PPGo_Job/models" - _ "github.com/PPGo_Job/routers" "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/models" + _ "github.com/george518/PPGo_Job/routers" ) const ( @@ -13,6 +16,7 @@ const ( func init() { //初始化数据模型 models.Init() + jobs.InitJobs() }