Skip to content

Commit

Permalink
update package reference path
Browse files Browse the repository at this point in the history
  • Loading branch information
eddycjy committed Mar 14, 2018
1 parent ccfe65f commit 150f0aa
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"net/http"

"gin-blog/routers"
"gin-blog/pkg/setting"
"github.com/EDDYCJY/go-gin-example/routers"
"github.com/EDDYCJY/go-gin-example/pkg/setting"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions middleware/jwt/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/gin-gonic/gin"

"gin-blog/pkg/util"
"gin-blog/pkg/e"
"github.com/EDDYCJY/go-gin-example/pkg/util"
"github.com/EDDYCJY/go-gin-example/pkg/e"
)

func JWT() gin.HandlerFunc {
Expand Down
2 changes: 1 addition & 1 deletion models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql"

"gin-blog/pkg/setting"
"github.com/EDDYCJY/go-gin-example/pkg/setting"
)

var db *gorm.DB
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

jwt "github.com/dgrijalva/jwt-go"

"gin-blog/pkg/setting"
"github.com/EDDYCJY/go-gin-example/pkg/setting"
)

var jwtSecret = []byte(setting.JwtSecret)
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/Unknwon/com"

"gin-blog/pkg/setting"
"github.com/EDDYCJY/go-gin-example/pkg/setting"
)

func GetPage(c *gin.Context) int {
Expand Down
8 changes: 4 additions & 4 deletions routers/api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"github.com/gin-gonic/gin"
"github.com/astaxie/beego/validation"

"gin-blog/pkg/e"
"gin-blog/pkg/util"
"gin-blog/models"
"gin-blog/pkg/logging"
"github.com/EDDYCJY/go-gin-example/pkg/e"
"github.com/EDDYCJY/go-gin-example/pkg/util"
"github.com/EDDYCJY/go-gin-example/models"
"github.com/EDDYCJY/go-gin-example/pkg/logging"
)

type auth struct {
Expand Down
10 changes: 5 additions & 5 deletions routers/api/v1/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"github.com/astaxie/beego/validation"
"github.com/Unknwon/com"

"gin-blog/models"
"gin-blog/pkg/e"
"gin-blog/pkg/setting"
"gin-blog/pkg/util"
"gin-blog/pkg/logging"
"github.com/EDDYCJY/go-gin-example/models"
"github.com/EDDYCJY/go-gin-example/pkg/e"
"github.com/EDDYCJY/go-gin-example/pkg/setting"
"github.com/EDDYCJY/go-gin-example/pkg/util"
"github.com/EDDYCJY/go-gin-example/pkg/logging"
)

//获取单个文章
Expand Down
10 changes: 5 additions & 5 deletions routers/api/v1/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"github.com/astaxie/beego/validation"
"github.com/Unknwon/com"

"gin-blog/pkg/e"
"gin-blog/models"
"gin-blog/pkg/util"
"gin-blog/pkg/setting"
"gin-blog/pkg/logging"
"github.com/EDDYCJY/go-gin-example/pkg/e"
"github.com/EDDYCJY/go-gin-example/models"
"github.com/EDDYCJY/go-gin-example/pkg/util"
"github.com/EDDYCJY/go-gin-example/pkg/setting"
"github.com/EDDYCJY/go-gin-example/pkg/logging"
)

//获取多个文章标签
Expand Down
8 changes: 4 additions & 4 deletions routers/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package routers
import (
"github.com/gin-gonic/gin"

"gin-blog/routers/api"
"gin-blog/routers/api/v1"
"gin-blog/pkg/setting"
"gin-blog/middleware/jwt"
"github.com/EDDYCJY/go-gin-example/routers/api"
"github.com/EDDYCJY/go-gin-example/routers/api/v1"
"github.com/EDDYCJY/go-gin-example/pkg/setting"
"github.com/EDDYCJY/go-gin-example/middleware/jwt"
)

func InitRouter() *gin.Engine {
Expand Down

0 comments on commit 150f0aa

Please sign in to comment.