Przeglądaj źródła

更新模块名称

zcool321@sina.com 5 lat temu
rodzic
commit
59f84a8033

+ 1 - 1
example/boot/router.go

@@ -1,10 +1,10 @@
 package boot
 package boot
 
 
 import (
 import (
+	"github.com/goflyfox/gtoken/gtoken"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/net/ghttp"
 	"github.com/gogf/gf/net/ghttp"
 	"github.com/gogf/gf/os/glog"
 	"github.com/gogf/gf/os/glog"
-	"gtoken/gtoken"
 )
 )
 
 
 /*
 /*

+ 1 - 1
example/main.go

@@ -1,8 +1,8 @@
 package main
 package main
 
 
 import (
 import (
+	_ "github.com/goflyfox/gtoken/example/boot"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/frame/g"
-	_ "gtoken/example/boot"
 )
 )
 
 
 func main() {
 func main() {

+ 1 - 1
example/test/api_test.go

@@ -2,9 +2,9 @@ package test
 
 
 import (
 import (
 	"encoding/json"
 	"encoding/json"
+	"github.com/goflyfox/gtoken/gtoken"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/net/ghttp"
 	"github.com/gogf/gf/net/ghttp"
-	"gtoken/gtoken"
 	"testing"
 	"testing"
 )
 )
 
 

+ 1 - 1
example/test/cache_test.go

@@ -1,11 +1,11 @@
 package test
 package test
 
 
 import (
 import (
+	"github.com/goflyfox/gtoken/gtoken"
 	"github.com/gogf/gf/encoding/gjson"
 	"github.com/gogf/gf/encoding/gjson"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/os/gcache"
 	"github.com/gogf/gf/os/gcache"
 	"github.com/gogf/gf/util/gconv"
 	"github.com/gogf/gf/util/gconv"
-	"gtoken/gtoken"
 	"testing"
 	"testing"
 	"time"
 	"time"
 )
 )

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module gtoken
+module github.com/goflyfox/gtoken
 
 
 require github.com/gogf/gf v1.8.4-0.20190913164306-41a0b5293949
 require github.com/gogf/gf v1.8.4-0.20190913164306-41a0b5293949
 
 

+ 1 - 1
gtoken/gtoken_test.go

@@ -1,7 +1,7 @@
 package gtoken_test
 package gtoken_test
 
 
 import (
 import (
-	"gtoken/gtoken"
+	"github.com/goflyfox/gtoken/gtoken"
 	"testing"
 	"testing"
 )
 )