From 7e720f494583bc962b872b8cd05ee84d7887bad3 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:14:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + controllers/common.go | 4 ++-- controllers/main.go | 6 +++--- controllers/task.go | 8 ++++---- jobs/init.go | 2 +- jobs/job.go | 4 ++-- main.go | 4 ++-- routers/router.go | 2 +- 8 files changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index a8515bc..dd4eb82 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # PPGo_Job 定时任务管理 代码参考自https://github.com/lisijie/webcron.git +修改 diff --git a/controllers/common.go b/controllers/common.go index 273bc8b..d391359 100644 --- a/controllers/common.go +++ b/controllers/common.go @@ -7,8 +7,8 @@ package controllers import ( - "PPGo_Job/libs" - "PPGo_Job/models" + "github.com/PPGo_Job/libs" + "github.com/PPGo_Job/models" "github.com/astaxie/beego" "strconv" "strings" diff --git a/controllers/main.go b/controllers/main.go index 6d5bb58..2062397 100644 --- a/controllers/main.go +++ b/controllers/main.go @@ -7,9 +7,9 @@ package controllers import ( - "PPGo_Job/jobs" - "PPGo_Job/libs" - "PPGo_Job/models" + "github.com/PPGo_Job/jobs" + "github.com/PPGo_Job/libs" + "github.com/PPGo_Job/models" "github.com/astaxie/beego" "github.com/astaxie/beego/utils" "runtime" diff --git a/controllers/task.go b/controllers/task.go index 55d73e8..42b89c0 100644 --- a/controllers/task.go +++ b/controllers/task.go @@ -8,10 +8,10 @@ package controllers import ( - crons "PPGo_Job/crons" - "PPGo_Job/jobs" - "PPGo_Job/libs" - "PPGo_Job/models" + 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" "strconv" "strings" diff --git a/jobs/init.go b/jobs/init.go index 8107162..3e9137c 100644 --- a/jobs/init.go +++ b/jobs/init.go @@ -8,8 +8,8 @@ package jobs import ( - "PPGo_Job/models" "fmt" + "github.com/PPGo_Job/models" "github.com/astaxie/beego" "os/exec" "time" diff --git a/jobs/job.go b/jobs/job.go index 5bdd865..82402a9 100644 --- a/jobs/job.go +++ b/jobs/job.go @@ -8,10 +8,10 @@ package jobs import ( - "PPGo_Job/mail" - "PPGo_Job/models" "bytes" "fmt" + "github.com/PPGo_Job/mail" + "github.com/PPGo_Job/models" "github.com/astaxie/beego" "html/template" "os/exec" diff --git a/main.go b/main.go index 1504271..fac9ec3 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( - "PPGo_Job/models" - _ "PPGo_Job/routers" + "github.com/PPGo_Job/models" + _ "github.com/PPGo_Job/routers" "github.com/astaxie/beego" ) diff --git a/routers/router.go b/routers/router.go index 1ae8b16..5a1cd54 100644 --- a/routers/router.go +++ b/routers/router.go @@ -1,7 +1,7 @@ package routers import ( - "PPGo_Job/controllers" + "github.com/PPGo_Job/controllers" "github.com/astaxie/beego" )