浏览代码

更改库地址

wangkaiyue 3 年之前
父节点
当前提交
c57b96a623

+ 2 - 2
core/logs/output.go

@@ -1,9 +1,9 @@
 package logs
 
 import (
+	. "bp.jydev.jianyu360.cn/BaseService/gateway/common/gatecode"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/router"
 	"fmt"
-	. "gateway/common/gatecode"
-	"gateway/core/router"
 	"github.com/gogf/gf/v2/errors/gerror"
 	"github.com/gogf/gf/v2/net/ghttp"
 	"github.com/gogf/gf/v2/os/gtime"

+ 1 - 1
core/node/hellowrold/main.go

@@ -1,8 +1,8 @@
 package main
 
 import (
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/node"
 	"fmt"
-	"gateway/core/node"
 	"github.com/gogf/gf/v2/frame/g"
 	"github.com/gogf/gf/v2/net/ghttp"
 	"os"

+ 1 - 1
core/node/register.go

@@ -1,9 +1,9 @@
 package node
 
 import (
+	"bp.jydev.jianyu360.cn/BaseService/gateway/common"
 	"context"
 	"fmt"
-	"gateway/common"
 	client "go.etcd.io/etcd/client/v3"
 	"log"
 	"time"

+ 1 - 1
core/proxy/broker/broker.go

@@ -1,8 +1,8 @@
 package broker
 
 import (
+	. "bp.jydev.jianyu360.cn/BaseService/gateway/common/gatecode"
 	"fmt"
-	. "gateway/common/gatecode"
 	"math/rand"
 	"sync"
 )

+ 1 - 1
core/proxy/loadmodule/weightRoundRobin.go

@@ -1,8 +1,8 @@
 package loadmodule
 
 import (
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/logs"
 	"errors"
-	"gateway/core/logs"
 	"github.com/gogf/gf/v2/os/gctx"
 	"net/url"
 	"strconv"

+ 2 - 2
core/proxy/middleware/errorHandler.go

@@ -1,8 +1,8 @@
 package middleware
 
 import (
-	. "gateway/common/gatecode"
-	"gateway/core/logs"
+	. "bp.jydev.jianyu360.cn/BaseService/gateway/common/gatecode"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/logs"
 	"github.com/gogf/gf/v2/errors/gcode"
 	"github.com/gogf/gf/v2/errors/gerror"
 	"github.com/gogf/gf/v2/net/ghttp"

+ 3 - 3
core/proxy/middleware/filterFuncs.go

@@ -1,11 +1,11 @@
 package middleware
 
 import (
+	. "bp.jydev.jianyu360.cn/BaseService/gateway/common/gatecode"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/proxy/rpc"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/router"
 	"bytes"
 	"encoding/json"
-	. "gateway/common/gatecode"
-	"gateway/core/proxy/rpc"
-	"gateway/core/router"
 	"github.com/gogf/gf/v2/net/ghttp"
 	"github.com/gogf/gf/v2/os/gcfg"
 	"github.com/gogf/gf/v2/os/gctx"

+ 6 - 6
core/proxy/proxyServer.go

@@ -1,13 +1,13 @@
 package proxy
 
 import (
+	. "bp.jydev.jianyu360.cn/BaseService/gateway/common/gatecode"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/logs"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/node"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/proxy/broker"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/proxy/middleware"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/router"
 	"fmt"
-	. "gateway/common/gatecode"
-	"gateway/core/logs"
-	"gateway/core/node"
-	"gateway/core/proxy/broker"
-	"gateway/core/proxy/middleware"
-	"gateway/core/router"
 	"github.com/gogf/gf/v2/frame/g"
 	"github.com/gogf/gf/v2/net/ghttp"
 	"github.com/gogf/gf/v2/os/gcfg"

+ 1 - 1
core/proxy/rpc/resourceCenter.go

@@ -1,10 +1,10 @@
 package rpc
 
 import (
+	. "bp.jydev.jianyu360.cn/BaseService/gateway/common/gatecode"
 	"bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/pb"
 	"bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/resource"
 	"fmt"
-	. "gateway/common/gatecode"
 	"github.com/gogf/gf/v2/os/gcfg"
 	"github.com/gogf/gf/v2/os/gctx"
 	"github.com/zeromicro/go-zero/core/discov"

+ 1 - 1
core/proxy/rpc/userCenter.go

@@ -1,10 +1,10 @@
 package rpc
 
 import (
+	. "bp.jydev.jianyu360.cn/BaseService/gateway/common/gatecode"
 	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
 	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/usercenter"
 	"fmt"
-	. "gateway/common/gatecode"
 	"github.com/gogf/gf/v2/os/gcfg"
 	"github.com/gogf/gf/v2/os/gctx"
 	"github.com/zeromicro/go-zero/core/discov"

+ 2 - 2
core/router/manager.go

@@ -1,9 +1,9 @@
 package router
 
 import (
+	"bp.jydev.jianyu360.cn/BaseService/gateway/common/db"
+	. "bp.jydev.jianyu360.cn/BaseService/gateway/common/gatecode"
 	"fmt"
-	"gateway/common/db"
-	. "gateway/common/gatecode"
 	"github.com/gogf/gf/v2/net/ghttp"
 	"github.com/gogf/gf/v2/util/gconv"
 	"log"

+ 1 - 2
go.mod

@@ -1,4 +1,4 @@
-module gateway
+module bp.jydev.jianyu360.cn/BaseService/gateway
 
 go 1.16
 
@@ -10,5 +10,4 @@ require (
 	github.com/gogf/gf/v2 v2.0.6
 	github.com/zeromicro/go-zero v1.3.2
 	go.etcd.io/etcd/client/v3 v3.5.2
-
 )

+ 4 - 4
main.go

@@ -1,10 +1,10 @@
 package main
 
 import (
-	"gateway/common/db"
-	"gateway/core/logs"
-	"gateway/core/proxy"
-	"gateway/core/proxy/rpc"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/common/db"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/logs"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/proxy"
+	"bp.jydev.jianyu360.cn/BaseService/gateway/core/proxy/rpc"
 	"github.com/gogf/gf/v2/frame/g"
 	"github.com/gogf/gf/v2/os/gcfg"
 )