Browse Source

v1.0.0-beta.1

xjg 4 tháng trước cách đây
mục cha
commit
9064c44468
39 tập tin đã thay đổi với 143 bổ sung139 xóa
  1. 5 5
      .drone.yml
  2. 1 1
      api/admin/permission/enter.go
  3. 6 6
      api/admin/permission/permission.go
  4. 1 1
      api/admin_common/enter.go
  5. 6 6
      api/admin_common/login.go
  6. 3 3
      api/admin_common/logout.go
  7. 5 5
      api/admin_common/profile.go
  8. 4 4
      api/admin_role/create_admin_role.go
  9. 4 4
      api/admin_role/delete_admin_role.go
  10. 1 1
      api/admin_role/enter.go
  11. 6 6
      api/admin_role/get_admin_role.go
  12. 6 6
      api/admin_role/list_admin_roles.go
  13. 3 3
      api/admin_role/retrieve_enabled_roles.go
  14. 5 5
      api/admin_role/toggle_admin_role.go
  15. 4 4
      api/admin_role/update_admin_role.go
  16. 4 4
      api/admin_user/create_admin_user.go
  17. 4 4
      api/admin_user/delete_admin_user.go
  18. 1 1
      api/admin_user/enter.go
  19. 5 5
      api/admin_user/get_admin_user.go
  20. 6 6
      api/admin_user/list_admin_users.go
  21. 3 3
      api/admin_user/retrieve_enabled_users.go
  22. 5 5
      api/admin_user/toggle_admin_user.go
  23. 4 4
      api/admin_user/update_admin_user.go
  24. 4 4
      go.mod
  25. 10 6
      go.sum
  26. 4 4
      main.go
  27. 1 1
      model/base/base.go
  28. 1 1
      model/response/admin/permission.go
  29. 1 1
      model/response/admin/role.go
  30. 1 1
      model/response/admin/user.go
  31. 1 1
      model/response/common/common.go
  32. 2 2
      response/response.go
  33. 7 7
      router/router.go
  34. 4 4
      router/v1/admin/permission/permission.go
  35. 4 4
      router/v1/admin_common/common.go
  36. 4 4
      router/v1/admin_role/role.go
  37. 4 4
      router/v1/admin_user/user.go
  38. 2 2
      utils/authutil/authutil.go
  39. 1 1
      utils/filter.go

+ 5 - 5
.drone.yml

@@ -1,6 +1,6 @@
 kind: pipeline
 type: docker
-name: authorization-client-publish
+name: auth-client-publish
 trigger:
   event:
     - push
@@ -18,10 +18,10 @@ steps:
       username: admin
       password:
         from_secret: harbor_password
-      repo: sghharbor.com/sghblog-project/authorization-client
+      repo: sghharbor.com/micro/auth-client
       registry: sghharbor.com
       tags:
-        - v1.1.1
+        - v1.0.0-beta.1
 #  - name: ssh commands
 #    image: appleboy/drone-ssh:1.6.13
 #    settings:
@@ -32,8 +32,8 @@ steps:
 #      port: 22
 #      script:
 #        #拉取镜像并重启 注意--需要提前在目标主机完成docker login
-#        - if [ $(docker ps -a | grep authorization-client | wc -l) -ge 1 ];then docker stop authorization-client && docker rm authorization-client; fi
-#        - docker pull sghharbor.com/sghblog-project/authorization-client:v1.0.0
+#        - if [ $(docker ps -a | grep auth-client | wc -l) -ge 1 ];then docker stop auth-client && docker rm auth-client; fi
+#        - docker pull sghharbor.com/sghblog-project/auth-client:v1.0.0
 volumes:
   - name: docker-ca
     host:

+ 1 - 1
api/admin/permission/enter.go

@@ -1,6 +1,6 @@
 package permission
 
-import pb "sghgogs.com/sghblog/authorization-service/proto"
+import pb "sghgogs.com/micro/auth-service/proto"
 
 type AdminPermission struct {
 	Service pb.AdminPermissionService

+ 6 - 6
api/admin/permission/permission.go

@@ -3,12 +3,12 @@ package permission
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/model/base"
-	"sghgogs.com/sghblog/authorization-client/model/response/admin"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/model/base"
+	"sghgogs.com/micro/auth-client/model/response/admin"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 )
 

+ 1 - 1
api/admin_common/enter.go

@@ -1,6 +1,6 @@
 package admin_common
 
-import pb "sghgogs.com/sghblog/authorization-service/proto"
+import pb "sghgogs.com/micro/auth-service/proto"
 
 type ApiAdminCommon struct {
 	Service pb.CommonService

+ 6 - 6
api/admin_common/login.go

@@ -3,12 +3,12 @@ package admin_common
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/model/base"
-	res "sghgogs.com/sghblog/authorization-client/model/response/common"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/model/base"
+	res "sghgogs.com/micro/auth-client/model/response/common"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 )
 
 type Request struct {

+ 3 - 3
api/admin_common/logout.go

@@ -4,9 +4,9 @@ import (
 	"fmt"
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
 )
 
 // Logout

+ 5 - 5
api/admin_common/profile.go

@@ -3,11 +3,11 @@ package admin_common
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/model/base"
-	"sghgogs.com/sghblog/authorization-client/model/response/common"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	"sghgogs.com/micro/auth-client/model/base"
+	"sghgogs.com/micro/auth-client/model/response/common"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
 )
 
 // Profile

+ 4 - 4
api/admin_role/create_admin_role.go

@@ -3,10 +3,10 @@ package admin_role
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 )
 
 type CreateAdminRoleRequest struct {

+ 4 - 4
api/admin_role/delete_admin_role.go

@@ -3,10 +3,10 @@ package admin_role
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 )
 

+ 1 - 1
api/admin_role/enter.go

@@ -1,6 +1,6 @@
 package admin_role
 
-import pb "sghgogs.com/sghblog/authorization-service/proto"
+import pb "sghgogs.com/micro/auth-service/proto"
 
 type ApiAdminRole struct {
 	Service pb.AdminRoleService

+ 6 - 6
api/admin_role/get_admin_role.go

@@ -3,12 +3,12 @@ package admin_role
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/model/base"
-	"sghgogs.com/sghblog/authorization-client/model/response/admin"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/model/base"
+	"sghgogs.com/micro/auth-client/model/response/admin"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 )
 

+ 6 - 6
api/admin_role/list_admin_roles.go

@@ -3,12 +3,12 @@ package admin_role
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/model/base"
-	"sghgogs.com/sghblog/authorization-client/model/response/admin"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/model/base"
+	"sghgogs.com/micro/auth-client/model/response/admin"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 	"time"
 )

+ 3 - 3
api/admin_role/retrieve_enabled_roles.go

@@ -3,9 +3,9 @@ package admin_role
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
 )
 
 type EnabledRoleItem struct {

+ 5 - 5
api/admin_role/toggle_admin_role.go

@@ -3,11 +3,11 @@ package admin_role
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/model/base"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/model/base"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 )
 

+ 4 - 4
api/admin_role/update_admin_role.go

@@ -3,10 +3,10 @@ package admin_role
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 )
 

+ 4 - 4
api/admin_user/create_admin_user.go

@@ -3,10 +3,10 @@ package admin_user
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 )
 
 type UserRequest struct {

+ 4 - 4
api/admin_user/delete_admin_user.go

@@ -3,10 +3,10 @@ package admin_user
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 )
 

+ 1 - 1
api/admin_user/enter.go

@@ -1,6 +1,6 @@
 package admin_user
 
-import pb "sghgogs.com/sghblog/authorization-service/proto"
+import pb "sghgogs.com/micro/auth-service/proto"
 
 type ApiAdminUser struct {
 	Service pb.AdminUserService

+ 5 - 5
api/admin_user/get_admin_user.go

@@ -3,11 +3,11 @@ package admin_user
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/model/base"
-	"sghgogs.com/sghblog/authorization-client/model/response/admin"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	"sghgogs.com/micro/auth-client/model/base"
+	"sghgogs.com/micro/auth-client/model/response/admin"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
 	"strconv"
 )
 

+ 6 - 6
api/admin_user/list_admin_users.go

@@ -3,12 +3,12 @@ package admin_user
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/model/base"
-	"sghgogs.com/sghblog/authorization-client/model/response/admin"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/model/base"
+	"sghgogs.com/micro/auth-client/model/response/admin"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 	"time"
 )

+ 3 - 3
api/admin_user/retrieve_enabled_users.go

@@ -3,9 +3,9 @@ package admin_user
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
 )
 
 type EnabledUserItem struct {

+ 5 - 5
api/admin_user/toggle_admin_user.go

@@ -3,11 +3,11 @@ package admin_user
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/model/base"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/model/base"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 )
 

+ 4 - 4
api/admin_user/update_admin_user.go

@@ -3,10 +3,10 @@ package admin_user
 import (
 	"github.com/gin-gonic/gin"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/response"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
-	"sghgogs.com/sghblog/common"
+	"sghgogs.com/micro/auth-client/response"
+	"sghgogs.com/micro/auth-client/utils"
+	pb "sghgogs.com/micro/auth-service/proto"
+	"sghgogs.com/micro/common"
 	"strconv"
 )
 

+ 4 - 4
go.mod

@@ -1,4 +1,4 @@
-module sghgogs.com/sghblog/authorization-client
+module sghgogs.com/micro/auth-client
 
 go 1.19
 
@@ -23,10 +23,9 @@ require (
 	go.opentelemetry.io/otel/trace v1.21.0
 	golang.org/x/net v0.17.0
 	google.golang.org/protobuf v1.31.0
-	sghgogs.com/sghblog/common v1.0.1
 )
 
-//replace sghgogs.com/sghblog/authorization-service => ../AuthorizationService
+//replace sghgogs.com/micro/auth-service => ../AuthorizationService
 
 require (
 	github.com/KyleBanks/depth v1.2.1 // indirect
@@ -132,5 +131,6 @@ require (
 	gopkg.in/yaml.v3 v3.0.1 // indirect
 	gorm.io/driver/mysql v1.5.2 // indirect
 	gorm.io/gorm v1.25.5 // indirect
-	sghgogs.com/sghblog/authorization-service v1.0.3 // indirect
+	sghgogs.com/micro/auth-service v1.0.0-beta.3 // indirect
+	sghgogs.com/micro/common v0.0.0-20240110100620-babd9b87dfe2 // indirect
 )

+ 10 - 6
go.sum

@@ -987,9 +987,13 @@ rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8
 rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
 rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
 rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
-sghgogs.com/sghblog/authorization-service v1.0.3 h1:wNoZlr2eyHsINUKB9C7yTXX1gTHkXdjkMPBCTk1pkRU=
-sghgogs.com/sghblog/authorization-service v1.0.3/go.mod h1:MwsNULd17cGAo6JSccmB7W1FqZ/R2rYICn8MQ03dtz0=
-sghgogs.com/sghblog/common v0.0.0-20231219070006-58d7e2000e0a h1:QfEb62RyInH+XxxJBmGTYx4c0gFlrsrX3ybjihrIcR8=
-sghgogs.com/sghblog/common v0.0.0-20231219070006-58d7e2000e0a/go.mod h1:DcFGf3a/9IznsK3wIp2M2WbzwKWu9aBqQ96jD8NOTmY=
-sghgogs.com/sghblog/common v1.0.1 h1:i2V3NBL7zh7bbKHlUhqmXZeHAD94ErnzNaDRCqJ3JL0=
-sghgogs.com/sghblog/common v1.0.1/go.mod h1:DcFGf3a/9IznsK3wIp2M2WbzwKWu9aBqQ96jD8NOTmY=
+sghgogs.com/micro/auth-service v1.0.0-beta.3 h1:jWSj69B/4YFdcZgCVdgaL0+V81znp3ePqR0VQ/xubeE=
+sghgogs.com/micro/auth-service v1.0.0-beta.3/go.mod h1:eW+hIpsC5G9QE+r5Cma2mRNGPrGn1o4yNQpOTxtVPQ8=
+sghgogs.com/micro/auth-service v1.0.3 h1:wNoZlr2eyHsINUKB9C7yTXX1gTHkXdjkMPBCTk1pkRU=
+sghgogs.com/micro/auth-service v1.0.3/go.mod h1:MwsNULd17cGAo6JSccmB7W1FqZ/R2rYICn8MQ03dtz0=
+sghgogs.com/micro/common v0.0.0-20231219070006-58d7e2000e0a h1:QfEb62RyInH+XxxJBmGTYx4c0gFlrsrX3ybjihrIcR8=
+sghgogs.com/micro/common v0.0.0-20231219070006-58d7e2000e0a/go.mod h1:DcFGf3a/9IznsK3wIp2M2WbzwKWu9aBqQ96jD8NOTmY=
+sghgogs.com/micro/common v0.0.0-20240110100620-babd9b87dfe2 h1:WFB2WyVQXp8dJPuoweat571GNRk5SqIN12gqvQPzq7Q=
+sghgogs.com/micro/common v0.0.0-20240110100620-babd9b87dfe2/go.mod h1:PST+1wrjoNbz/+fHmuWVXJSupJBst2uBL+YePivTfAc=
+sghgogs.com/micro/common v1.0.1 h1:i2V3NBL7zh7bbKHlUhqmXZeHAD94ErnzNaDRCqJ3JL0=
+sghgogs.com/micro/common v1.0.1/go.mod h1:DcFGf3a/9IznsK3wIp2M2WbzwKWu9aBqQ96jD8NOTmY=

+ 4 - 4
main.go

@@ -13,10 +13,10 @@ import (
 	"go.opentelemetry.io/otel/propagation"
 	"golang.org/x/net/context"
 	"os"
-	"sghgogs.com/sghblog/authorization-client/config"
-	"sghgogs.com/sghblog/authorization-client/router"
-	"sghgogs.com/sghblog/authorization-client/utils/authutil"
-	"sghgogs.com/sghblog/authorization-client/utils/tracing"
+	"sghgogs.com/micro/auth-client/config"
+	"sghgogs.com/micro/auth-client/router"
+	"sghgogs.com/micro/auth-client/utils/authutil"
+	"sghgogs.com/micro/auth-client/utils/tracing"
 	"time"
 )
 

+ 1 - 1
model/base/base.go

@@ -2,7 +2,7 @@ package base
 
 import (
 	"github.com/pkg/errors"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	pb "sghgogs.com/micro/auth-service/proto"
 )
 
 type ListMapItem struct {

+ 1 - 1
model/response/admin/permission.go

@@ -1,7 +1,7 @@
 package admin
 
 import (
-	"sghgogs.com/sghblog/authorization-client/model/base"
+	"sghgogs.com/micro/auth-client/model/base"
 	"time"
 )
 

+ 1 - 1
model/response/admin/role.go

@@ -1,7 +1,7 @@
 package admin
 
 import (
-	"sghgogs.com/sghblog/authorization-client/model/base"
+	"sghgogs.com/micro/auth-client/model/base"
 	"time"
 )
 

+ 1 - 1
model/response/admin/user.go

@@ -1,7 +1,7 @@
 package admin
 
 import (
-	"sghgogs.com/sghblog/authorization-client/model/base"
+	"sghgogs.com/micro/auth-client/model/base"
 	"time"
 )
 

+ 1 - 1
model/response/common/common.go

@@ -1,6 +1,6 @@
 package common
 
-import "sghgogs.com/sghblog/authorization-client/model/base"
+import "sghgogs.com/micro/auth-client/model/base"
 
 type UserInfo struct {
 	Id          int64              `json:"id"`

+ 2 - 2
response/response.go

@@ -6,8 +6,8 @@ import (
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
 	"net/http"
-	"sghgogs.com/sghblog/common"
-	"sghgogs.com/sghblog/common/errorcode"
+	"sghgogs.com/micro/common"
+	"sghgogs.com/micro/common/errorcode"
 	"strconv"
 )
 

+ 7 - 7
router/router.go

@@ -3,18 +3,18 @@ package router
 import (
 	"github.com/gin-gonic/gin"
 	"github.com/sirupsen/logrus"
-	"sghgogs.com/sghblog/authorization-client/router/v1/admin/permission"
-	"sghgogs.com/sghblog/authorization-client/router/v1/admin_role"
-	"sghgogs.com/sghblog/authorization-client/router/v1/admin_user"
+	"sghgogs.com/micro/auth-client/router/v1/admin/permission"
+	"sghgogs.com/micro/auth-client/router/v1/admin_role"
+	"sghgogs.com/micro/auth-client/router/v1/admin_user"
 
 	swaggerFiles "github.com/swaggo/files"
 	"github.com/swaggo/gin-swagger"
 	"go-micro.dev/v4/client"
 	"net/http"
-	_ "sghgogs.com/sghblog/authorization-client/docs"
-	"sghgogs.com/sghblog/authorization-client/router/v1/admin_common"
-	"sghgogs.com/sghblog/authorization-client/utils/baseservice"
-	"sghgogs.com/sghblog/authorization-client/utils/tracing"
+	_ "sghgogs.com/micro/auth-client/docs"
+	"sghgogs.com/micro/auth-client/router/v1/admin_common"
+	"sghgogs.com/micro/auth-client/utils/baseservice"
+	"sghgogs.com/micro/auth-client/utils/tracing"
 	"time"
 )
 

+ 4 - 4
router/v1/admin/permission/permission.go

@@ -3,10 +3,10 @@ package permission
 import (
 	"github.com/gin-gonic/gin"
 	"go-micro.dev/v4/client"
-	"sghgogs.com/sghblog/authorization-client/api/admin/permission"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	"sghgogs.com/sghblog/authorization-client/utils/baseservice"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	"sghgogs.com/micro/auth-client/api/admin/permission"
+	"sghgogs.com/micro/auth-client/utils"
+	"sghgogs.com/micro/auth-client/utils/baseservice"
+	pb "sghgogs.com/micro/auth-service/proto"
 )
 
 type AdminPermission struct {

+ 4 - 4
router/v1/admin_common/common.go

@@ -3,10 +3,10 @@ package admin_common
 import (
 	"github.com/gin-gonic/gin"
 	"go-micro.dev/v4/client"
-	"sghgogs.com/sghblog/authorization-client/api/admin_common"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	"sghgogs.com/sghblog/authorization-client/utils/baseservice"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	"sghgogs.com/micro/auth-client/api/admin_common"
+	"sghgogs.com/micro/auth-client/utils"
+	"sghgogs.com/micro/auth-client/utils/baseservice"
+	pb "sghgogs.com/micro/auth-service/proto"
 )
 
 type AdminCommon struct {

+ 4 - 4
router/v1/admin_role/role.go

@@ -3,10 +3,10 @@ package admin_role
 import (
 	"github.com/gin-gonic/gin"
 	"go-micro.dev/v4/client"
-	"sghgogs.com/sghblog/authorization-client/api/admin_role"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	"sghgogs.com/sghblog/authorization-client/utils/baseservice"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	"sghgogs.com/micro/auth-client/api/admin_role"
+	"sghgogs.com/micro/auth-client/utils"
+	"sghgogs.com/micro/auth-client/utils/baseservice"
+	pb "sghgogs.com/micro/auth-service/proto"
 )
 
 type AdminRole struct {

+ 4 - 4
router/v1/admin_user/user.go

@@ -3,10 +3,10 @@ package admin_user
 import (
 	"github.com/gin-gonic/gin"
 	"go-micro.dev/v4/client"
-	"sghgogs.com/sghblog/authorization-client/api/admin_user"
-	"sghgogs.com/sghblog/authorization-client/utils"
-	"sghgogs.com/sghblog/authorization-client/utils/baseservice"
-	pb "sghgogs.com/sghblog/authorization-service/proto"
+	"sghgogs.com/micro/auth-client/api/admin_user"
+	"sghgogs.com/micro/auth-client/utils"
+	"sghgogs.com/micro/auth-client/utils/baseservice"
+	pb "sghgogs.com/micro/auth-service/proto"
 )
 
 type AdminUser struct {

+ 2 - 2
utils/authutil/authutil.go

@@ -12,8 +12,8 @@ import (
 	"go-micro.dev/v4/auth"
 	"os"
 	"os/signal"
-	"sghgogs.com/sghblog/common"
-	"sghgogs.com/sghblog/common/errorcode"
+	"sghgogs.com/micro/common"
+	"sghgogs.com/micro/common/errorcode"
 	"strconv"
 	"strings"
 	"sync"

+ 1 - 1
utils/filter.go

@@ -7,7 +7,7 @@ import (
 	"go-micro.dev/v4/metadata"
 	"golang.org/x/net/context"
 	"net/http"
-	"sghgogs.com/sghblog/authorization-client/utils/authutil"
+	"sghgogs.com/micro/auth-client/utils/authutil"
 	"strconv"
 	"strings"
 	"time"