Browse Source

update: 修改module

zoie 1 year ago
parent
commit
88e39c560e
77 changed files with 146 additions and 144 deletions
  1. 7 7
      api/api.go
  2. 3 3
      api/request_logger.go
  3. 2 2
      config/README.md
  4. 4 4
      config/config.go
  5. 5 5
      config/default.go
  6. 4 4
      config/default_test.go
  7. 1 1
      config/encoder/json/json.go
  8. 1 1
      config/encoder/toml/toml.go
  9. 1 1
      config/encoder/xml/xml.go
  10. 1 1
      config/encoder/yaml/yaml.go
  11. 2 2
      config/loader/loader.go
  12. 4 4
      config/loader/memory/memory.go
  13. 3 3
      config/loader/memory/options.go
  14. 3 3
      config/options.go
  15. 4 4
      config/reader/json/json.go
  16. 1 1
      config/reader/json/json_test.go
  17. 2 2
      config/reader/json/values.go
  18. 1 1
      config/reader/json/values_test.go
  19. 5 5
      config/reader/options.go
  20. 1 1
      config/reader/reader.go
  21. 1 1
      config/secrets/box/box.go
  22. 1 1
      config/secrets/box/box_test.go
  23. 1 1
      config/secrets/secretbox/secretbox.go
  24. 1 1
      config/secrets/secretbox/secretbox_test.go
  25. 10 9
      config/source/env/env.go
  26. 1 1
      config/source/env/env_test.go
  27. 1 1
      config/source/env/options.go
  28. 1 1
      config/source/env/watcher.go
  29. 1 1
      config/source/file/file.go
  30. 2 2
      config/source/file/file_test.go
  31. 1 1
      config/source/file/format.go
  32. 1 1
      config/source/file/format_test.go
  33. 1 1
      config/source/file/options.go
  34. 1 1
      config/source/file/watcher.go
  35. 1 1
      config/source/file/watcher_linux.go
  36. 8 7
      config/source/flag/flag.go
  37. 1 1
      config/source/flag/options.go
  38. 1 1
      config/source/memory/memory.go
  39. 1 1
      config/source/memory/options.go
  40. 1 1
      config/source/memory/watcher.go
  41. 2 2
      config/source/options.go
  42. 1 1
      config/value.go
  43. 1 1
      go.mod
  44. 1 1
      logger/default.go
  45. 2 2
      pkg/captcha/store.go
  46. 2 2
      pkg/captcha/store_test.go
  47. 1 1
      pkg/casbin/log.go
  48. 2 2
      pkg/jwtauth/user/user.go
  49. 5 5
      pkg/logger/log.go
  50. 1 1
      pkg/response/return.go
  51. 1 1
      pkg/ws/ws.go
  52. 1 1
      plugins/logger/zap/options.go
  53. 1 1
      plugins/logger/zap/zap.go
  54. 1 1
      plugins/logger/zap/zap_test.go
  55. 3 3
      runtime/application.go
  56. 1 1
      runtime/cache.go
  57. 1 1
      runtime/locker.go
  58. 1 1
      runtime/queue.go
  59. 2 2
      runtime/queue_test.go
  60. 2 2
      runtime/type.go
  61. 1 1
      sdk/application.go
  62. 2 2
      sdk/config/cache.go
  63. 2 2
      sdk/config/config.go
  64. 2 2
      sdk/config/locker.go
  65. 1 1
      sdk/config/logger.go
  66. 2 2
      sdk/config/queue.go
  67. 2 2
      service/service.go
  68. 1 1
      storage/cache/message.go
  69. 1 1
      storage/queue/memory.go
  70. 1 1
      storage/queue/memory_test.go
  71. 1 1
      storage/queue/message.go
  72. 1 1
      storage/queue/nsq.go
  73. 1 1
      storage/queue/redis.go
  74. 1 1
      storage/queue/redis_test.go
  75. 1 1
      tools/gorm/logger/logger.go
  76. 1 1
      tools/gorm/logger/logger_test.go
  77. 1 1
      tools/transfer/gin.go

+ 7 - 7
api/api.go

@@ -10,13 +10,13 @@ import (
 	"github.com/gin-gonic/gin/binding"
 	"gorm.io/gorm"
 
-	"git.baozhida.cn/OAuth-core/logger"
-	"git.baozhida.cn/OAuth-core/pkg"
-	"git.baozhida.cn/OAuth-core/pkg/response"
-	"git.baozhida.cn/OAuth-core/sdk"
-	"git.baozhida.cn/OAuth-core/service"
-	"git.baozhida.cn/OAuth-core/storage"
-	"git.baozhida.cn/OAuth-core/tools/language"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/pkg"
+	"gogs.baozhida.cn/zoie/OAuth-core/pkg/response"
+	"gogs.baozhida.cn/zoie/OAuth-core/sdk"
+	"gogs.baozhida.cn/zoie/OAuth-core/service"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/tools/language"
 )
 
 var DefaultLanguage = "zh-CN"

+ 3 - 3
api/request_logger.go

@@ -4,9 +4,9 @@ import (
 	"strings"
 
 	"github.com/gin-gonic/gin"
-	"git.baozhida.cn/OAuth-core/logger"
-	"git.baozhida.cn/OAuth-core/pkg"
-	"git.baozhida.cn/OAuth-core/sdk"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/pkg"
+	"gogs.baozhida.cn/zoie/OAuth-core/sdk"
 )
 
 type loggerKey struct{}

+ 2 - 2
config/README.md

@@ -6,8 +6,8 @@ import (
 	"fmt"
 	"testing"
 	
-	"git.baozhida.cn/OAuth-core/config"
-	"git.baozhida.cn/OAuth-core/config/source/file"
+	"gogs.baozhida.cn/zoie/OAuth-core/config"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source/file"
 )
 
 func TestApp(t *testing.T)  {

+ 4 - 4
config/config.go

@@ -4,10 +4,10 @@ package config
 import (
 	"context"
 
-	"git.baozhida.cn/OAuth-core/config/loader"
-	"git.baozhida.cn/OAuth-core/config/reader"
-	"git.baozhida.cn/OAuth-core/config/source"
-	"git.baozhida.cn/OAuth-core/config/source/file"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/loader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source/file"
 )
 
 // Config is an interface abstraction for dynamic configuration

+ 5 - 5
config/default.go

@@ -5,11 +5,11 @@ import (
 	"sync"
 	"time"
 
-	"git.baozhida.cn/OAuth-core/config/loader"
-	"git.baozhida.cn/OAuth-core/config/loader/memory"
-	"git.baozhida.cn/OAuth-core/config/reader"
-	"git.baozhida.cn/OAuth-core/config/reader/json"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/loader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/loader/memory"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader/json"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type config struct {

+ 4 - 4
config/default_test.go

@@ -9,10 +9,10 @@ import (
 	"testing"
 	"time"
 
-	"git.baozhida.cn/OAuth-core/config/source"
-	"git.baozhida.cn/OAuth-core/config/source/env"
-	"git.baozhida.cn/OAuth-core/config/source/file"
-	"git.baozhida.cn/OAuth-core/config/source/memory"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source/env"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source/file"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source/memory"
 )
 
 func createFileForIssue18(t *testing.T, content string) *os.File {

+ 1 - 1
config/encoder/json/json.go

@@ -2,7 +2,7 @@ package json
 
 import (
 	"encoding/json"
-	"git.baozhida.cn/OAuth-core/config/encoder"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder"
 )
 
 type jsonEncoder struct{}

+ 1 - 1
config/encoder/toml/toml.go

@@ -4,7 +4,7 @@ import (
 	"bytes"
 
 	"github.com/BurntSushi/toml"
-	"git.baozhida.cn/OAuth-core/config/encoder"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder"
 )
 
 type tomlEncoder struct{}

+ 1 - 1
config/encoder/xml/xml.go

@@ -3,7 +3,7 @@ package xml
 import (
 	"encoding/xml"
 
-	"git.baozhida.cn/OAuth-core/config/encoder"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder"
 )
 
 type xmlEncoder struct{}

+ 1 - 1
config/encoder/yaml/yaml.go

@@ -2,7 +2,7 @@ package yaml
 
 import (
 	"github.com/ghodss/yaml"
-	"git.baozhida.cn/OAuth-core/config/encoder"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder"
 )
 
 type yamlEncoder struct{}

+ 2 - 2
config/loader/loader.go

@@ -4,8 +4,8 @@ package loader
 import (
 	"context"
 
-	"git.baozhida.cn/OAuth-core/config/reader"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 // Loader manages loading sources

+ 4 - 4
config/loader/memory/memory.go

@@ -9,10 +9,10 @@ import (
 	"sync"
 	"time"
 
-	"git.baozhida.cn/OAuth-core/config/loader"
-	"git.baozhida.cn/OAuth-core/config/reader"
-	"git.baozhida.cn/OAuth-core/config/reader/json"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/loader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader/json"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type memory struct {

+ 3 - 3
config/loader/memory/options.go

@@ -1,9 +1,9 @@
 package memory
 
 import (
-	"git.baozhida.cn/OAuth-core/config/loader"
-	"git.baozhida.cn/OAuth-core/config/reader"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/loader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 // WithSource appends a source to list of sources

+ 3 - 3
config/options.go

@@ -1,9 +1,9 @@
 package config
 
 import (
-	"git.baozhida.cn/OAuth-core/config/loader"
-	"git.baozhida.cn/OAuth-core/config/reader"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/loader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 // WithLoader sets the loader for manager config

+ 4 - 4
config/reader/json/json.go

@@ -5,10 +5,10 @@ import (
 	"time"
 
 	"github.com/imdario/mergo"
-	"git.baozhida.cn/OAuth-core/config/encoder"
-	"git.baozhida.cn/OAuth-core/config/encoder/json"
-	"git.baozhida.cn/OAuth-core/config/reader"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder/json"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 const readerTyp = "json"

+ 1 - 1
config/reader/json/json_test.go

@@ -3,7 +3,7 @@ package json
 import (
 	"testing"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 func TestReader(t *testing.T) {

+ 2 - 2
config/reader/json/values.go

@@ -8,8 +8,8 @@ import (
 	"time"
 
 	simple "github.com/bitly/go-simplejson"
-	"git.baozhida.cn/OAuth-core/config/reader"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type jsonValues struct {

+ 1 - 1
config/reader/json/values_test.go

@@ -4,7 +4,7 @@ import (
 	"reflect"
 	"testing"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 func TestValues(t *testing.T) {

+ 5 - 5
config/reader/options.go

@@ -1,11 +1,11 @@
 package reader
 
 import (
-	"git.baozhida.cn/OAuth-core/config/encoder"
-	"git.baozhida.cn/OAuth-core/config/encoder/json"
-	"git.baozhida.cn/OAuth-core/config/encoder/toml"
-	"git.baozhida.cn/OAuth-core/config/encoder/xml"
-	"git.baozhida.cn/OAuth-core/config/encoder/yaml"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder/json"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder/toml"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder/xml"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder/yaml"
 )
 
 type Options struct {

+ 1 - 1
config/reader/reader.go

@@ -4,7 +4,7 @@ package reader
 import (
 	"time"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 // Reader is an interface for merging changesets

+ 1 - 1
config/secrets/box/box.go

@@ -3,8 +3,8 @@ package box
 
 import (
 	"github.com/pkg/errors"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/secrets"
 	naclbox "golang.org/x/crypto/nacl/box"
-	"git.baozhida.cn/OAuth-core/config/secrets"
 
 	"crypto/rand"
 )

+ 1 - 1
config/secrets/box/box_test.go

@@ -5,8 +5,8 @@ import (
 	"reflect"
 	"testing"
 
+	"gogs.baozhida.cn/zoie/OAuth-core/config/secrets"
 	naclbox "golang.org/x/crypto/nacl/box"
-	"git.baozhida.cn/OAuth-core/config/secrets"
 )
 
 func TestBox(t *testing.T) {

+ 1 - 1
config/secrets/secretbox/secretbox.go

@@ -4,8 +4,8 @@ package secretbox
 
 import (
 	"github.com/pkg/errors"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/secrets"
 	"golang.org/x/crypto/nacl/secretbox"
-	"git.baozhida.cn/OAuth-core/config/secrets"
 
 	"crypto/rand"
 )

+ 1 - 1
config/secrets/secretbox/secretbox_test.go

@@ -5,7 +5,7 @@ import (
 	"reflect"
 	"testing"
 
-	"git.baozhida.cn/OAuth-core/config/secrets"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/secrets"
 )
 
 func TestSecretBox(t *testing.T) {

+ 10 - 9
config/source/env/env.go

@@ -7,7 +7,7 @@ import (
 	"time"
 
 	"github.com/imdario/mergo"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 var (
@@ -117,15 +117,16 @@ func (e *env) String() string {
 // Underscores are delimiters for nesting, and all keys are lowercased.
 //
 // Example:
-//      "DATABASE_SERVER_HOST=localhost" will convert to
 //
-//      {
-//          "database": {
-//              "server": {
-//                  "host": "localhost"
-//              }
-//          }
-//      }
+//	"DATABASE_SERVER_HOST=localhost" will convert to
+//
+//	{
+//	    "database": {
+//	        "server": {
+//	            "host": "localhost"
+//	        }
+//	    }
+//	}
 func NewSource(opts ...source.Option) source.Source {
 	options := source.NewOptions(opts...)
 

+ 1 - 1
config/source/env/env_test.go

@@ -6,7 +6,7 @@ import (
 	"testing"
 	"time"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 func TestEnv_Read(t *testing.T) {

+ 1 - 1
config/source/env/options.go

@@ -5,7 +5,7 @@ import (
 
 	"strings"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type strippedPrefixKey struct{}

+ 1 - 1
config/source/env/watcher.go

@@ -1,7 +1,7 @@
 package env
 
 import (
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type watcher struct {

+ 1 - 1
config/source/file/file.go

@@ -5,7 +5,7 @@ import (
 	"io/ioutil"
 	"os"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type file struct {

+ 2 - 2
config/source/file/file_test.go

@@ -7,8 +7,8 @@ import (
 	"testing"
 	"time"
 
-	"git.baozhida.cn/OAuth-core/config"
-	"git.baozhida.cn/OAuth-core/config/source/file"
+	"gogs.baozhida.cn/zoie/OAuth-core/config"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source/file"
 )
 
 func TestConfig(t *testing.T) {

+ 1 - 1
config/source/file/format.go

@@ -3,7 +3,7 @@ package file
 import (
 	"strings"
 
-	"git.baozhida.cn/OAuth-core/config/encoder"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder"
 )
 
 func format(p string, e encoder.Encoder) string {

+ 1 - 1
config/source/file/format_test.go

@@ -3,7 +3,7 @@ package file
 import (
 	"testing"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 func TestFormat(t *testing.T) {

+ 1 - 1
config/source/file/options.go

@@ -3,7 +3,7 @@ package file
 import (
 	"context"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type filePathKey struct{}

+ 1 - 1
config/source/file/watcher.go

@@ -7,7 +7,7 @@ import (
 	"os"
 
 	"github.com/fsnotify/fsnotify"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type watcher struct {

+ 1 - 1
config/source/file/watcher_linux.go

@@ -7,7 +7,7 @@ import (
 	"os"
 
 	"github.com/fsnotify/fsnotify"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type watcher struct {

+ 8 - 7
config/source/flag/flag.go

@@ -4,9 +4,9 @@ import (
 	"errors"
 	"flag"
 	"github.com/imdario/mergo"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 	"strings"
 	"time"
-	"git.baozhida.cn/OAuth-core/config/source"
 )
 
 type flagsrc struct {
@@ -89,13 +89,14 @@ func (fs *flagsrc) String() string {
 // Hyphens are delimiters for nesting, and all keys are lowercased.
 //
 // Example:
-//      dbhost := flag.String("database-host", "localhost", "the db host name")
 //
-//      {
-//          "database": {
-//              "host": "localhost"
-//          }
-//      }
+//	dbhost := flag.String("database-host", "localhost", "the db host name")
+//
+//	{
+//	    "database": {
+//	        "host": "localhost"
+//	    }
+//	}
 func NewSource(opts ...source.Option) source.Source {
 	return &flagsrc{opts: source.NewOptions(opts...)}
 }

+ 1 - 1
config/source/flag/options.go

@@ -3,7 +3,7 @@ package flag
 import (
 	"context"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type includeUnsetKey struct{}

+ 1 - 1
config/source/memory/memory.go

@@ -6,7 +6,7 @@ import (
 	"time"
 
 	"github.com/google/uuid"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type memory struct {

+ 1 - 1
config/source/memory/options.go

@@ -3,7 +3,7 @@ package memory
 import (
 	"context"
 
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type changeSetKey struct{}

+ 1 - 1
config/source/memory/watcher.go

@@ -1,7 +1,7 @@
 package memory
 
 import (
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 type watcher struct {

+ 2 - 2
config/source/options.go

@@ -3,8 +3,8 @@ package source
 import (
 	"context"
 
-	"git.baozhida.cn/OAuth-core/config/encoder"
-	"git.baozhida.cn/OAuth-core/config/encoder/json"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/encoder/json"
 )
 
 type Options struct {

+ 1 - 1
config/value.go

@@ -3,7 +3,7 @@ package config
 import (
 	"time"
 
-	"git.baozhida.cn/OAuth-core/config/reader"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/reader"
 )
 
 type value struct{}

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module git.baozhida.cn/OAuth-core
+module gogs.baozhida.cn/zoie/OAuth-core
 
 go 1.19
 

+ 1 - 1
logger/default.go

@@ -11,7 +11,7 @@ import (
 	"sync"
 	"time"
 
-	dlog "git.baozhida.cn/OAuth-core/debug/log"
+	dlog "gogs.baozhida.cn/zoie/OAuth-core/debug/log"
 )
 
 func init() {

+ 2 - 2
pkg/captcha/store.go

@@ -3,7 +3,7 @@ package captcha
 import (
 	"github.com/mojocn/base64Captcha"
 
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 type cacheStore struct {
@@ -39,7 +39,7 @@ func (e *cacheStore) Get(id string, clear bool) string {
 	return ""
 }
 
-//Verify captcha's answer directly
+// Verify captcha's answer directly
 func (e *cacheStore) Verify(id, answer string, clear bool) bool {
 	return e.Get(id, clear) == answer
 }

+ 2 - 2
pkg/captcha/store_test.go

@@ -8,8 +8,8 @@ import (
 
 	"github.com/mojocn/base64Captcha"
 
-	"git.baozhida.cn/OAuth-core/storage"
-	"git.baozhida.cn/OAuth-core/storage/cache"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage/cache"
 )
 
 var _expiration = 6000

+ 1 - 1
pkg/casbin/log.go

@@ -3,7 +3,7 @@ package mycasbin
 import (
 	"sync/atomic"
 
-	"git.baozhida.cn/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
 )
 
 // Logger is the implementation for a Logger using golang log.

+ 2 - 2
pkg/jwtauth/user/user.go

@@ -3,8 +3,8 @@ package user
 import (
 	"fmt"
 	"github.com/gin-gonic/gin"
-	"git.baozhida.cn/OAuth-core/pkg"
-	jwt "git.baozhida.cn/OAuth-core/pkg/jwtauth"
+	"gogs.baozhida.cn/zoie/OAuth-core/pkg"
+	jwt "gogs.baozhida.cn/zoie/OAuth-core/pkg/jwtauth"
 )
 
 func ExtractClaims(c *gin.Context) jwt.MapClaims {

+ 5 - 5
pkg/logger/log.go

@@ -4,11 +4,11 @@ import (
 	"io"
 	"os"
 
-	"git.baozhida.cn/OAuth-core/debug/writer"
-	"git.baozhida.cn/OAuth-core/logger"
-	log "git.baozhida.cn/OAuth-core/logger"
-	"git.baozhida.cn/OAuth-core/pkg"
-	"git.baozhida.cn/OAuth-core/plugins/logger/zap"
+	"gogs.baozhida.cn/zoie/OAuth-core/debug/writer"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
+	log "gogs.baozhida.cn/zoie/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/pkg"
+	"gogs.baozhida.cn/zoie/OAuth-core/plugins/logger/zap"
 )
 
 // SetupLogger 日志 cap 单位为kb

+ 1 - 1
pkg/response/return.go

@@ -4,7 +4,7 @@ import (
 	"net/http"
 
 	"github.com/gin-gonic/gin"
-	"git.baozhida.cn/OAuth-core/pkg"
+	"gogs.baozhida.cn/zoie/OAuth-core/pkg"
 )
 
 var Default = &response{}

+ 1 - 1
pkg/ws/ws.go

@@ -10,7 +10,7 @@ import (
 
 	"github.com/gin-gonic/gin"
 	"github.com/gorilla/websocket"
-	"git.baozhida.cn/OAuth-core/pkg"
+	"gogs.baozhida.cn/zoie/OAuth-core/pkg"
 )
 
 // Manager 所有 websocket 信息

+ 1 - 1
plugins/logger/zap/options.go

@@ -6,7 +6,7 @@ import (
 	"go.uber.org/zap"
 	"go.uber.org/zap/zapcore"
 
-	"git.baozhida.cn/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
 )
 
 type Options struct {

+ 1 - 1
plugins/logger/zap/zap.go

@@ -10,7 +10,7 @@ import (
 	"go.uber.org/zap"
 	"go.uber.org/zap/zapcore"
 
-	"git.baozhida.cn/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
 )
 
 type zaplog struct {

+ 1 - 1
plugins/logger/zap/zap_test.go

@@ -3,7 +3,7 @@ package zap
 import (
 	"testing"
 
-	"git.baozhida.cn/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
 )
 
 func TestName(t *testing.T) {

+ 3 - 3
runtime/application.go

@@ -7,10 +7,10 @@ import (
 
 	"github.com/casbin/casbin/v2"
 	"github.com/robfig/cron/v3"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage/queue"
 	"gorm.io/gorm"
-	"git.baozhida.cn/OAuth-core/logger"
-	"git.baozhida.cn/OAuth-core/storage"
-	"git.baozhida.cn/OAuth-core/storage/queue"
 )
 
 type Application struct {

+ 1 - 1
runtime/cache.go

@@ -6,7 +6,7 @@ import (
 
 	"github.com/chanxuehong/wechat/oauth2"
 
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 const (

+ 1 - 1
runtime/locker.go

@@ -3,7 +3,7 @@ package runtime
 import (
 	"github.com/bsm/redislock"
 
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 // NewLocker 创建对应上下文分布式锁

+ 1 - 1
runtime/queue.go

@@ -1,6 +1,6 @@
 package runtime
 
-import "git.baozhida.cn/OAuth-core/storage"
+import "gogs.baozhida.cn/zoie/OAuth-core/storage"
 
 // NewQueue 创建对应上下文队列
 func NewQueue(prefix string, queue storage.AdapterQueue) storage.AdapterQueue {

+ 2 - 2
runtime/queue_test.go

@@ -8,8 +8,8 @@ import (
 
 	"github.com/go-redis/redis/v7"
 	"github.com/robinjoseph08/redisqueue/v2"
-	"git.baozhida.cn/OAuth-core/storage"
-	"git.baozhida.cn/OAuth-core/storage/queue"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage/queue"
 )
 
 func TestNewMemoryQueue(t *testing.T) {

+ 2 - 2
runtime/type.go

@@ -6,9 +6,9 @@ import (
 
 	"github.com/casbin/casbin/v2"
 	"github.com/robfig/cron/v3"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 	"gorm.io/gorm"
-	"git.baozhida.cn/OAuth-core/logger"
-	"git.baozhida.cn/OAuth-core/storage"
 )
 
 type Runtime interface {

+ 1 - 1
sdk/application.go

@@ -1,5 +1,5 @@
 package sdk
 
-import "git.baozhida.cn/OAuth-core/runtime"
+import "gogs.baozhida.cn/zoie/OAuth-core/runtime"
 
 var Runtime runtime.Runtime = runtime.NewConfig()

+ 2 - 2
sdk/config/cache.go

@@ -1,8 +1,8 @@
 package config
 
 import (
-	"git.baozhida.cn/OAuth-core/storage"
-	"git.baozhida.cn/OAuth-core/storage/cache"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage/cache"
 )
 
 type Cache struct {

+ 2 - 2
sdk/config/config.go

@@ -4,8 +4,8 @@ import (
 	"fmt"
 	"log"
 
-	"git.baozhida.cn/OAuth-core/config"
-	"git.baozhida.cn/OAuth-core/config/source"
+	"gogs.baozhida.cn/zoie/OAuth-core/config"
+	"gogs.baozhida.cn/zoie/OAuth-core/config/source"
 )
 
 var (

+ 2 - 2
sdk/config/locker.go

@@ -2,8 +2,8 @@ package config
 
 import (
 	"github.com/go-redis/redis/v7"
-	"git.baozhida.cn/OAuth-core/storage"
-	"git.baozhida.cn/OAuth-core/storage/locker"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage/locker"
 )
 
 var LockerConfig = new(Locker)

+ 1 - 1
sdk/config/logger.go

@@ -1,6 +1,6 @@
 package config
 
-import "git.baozhida.cn/OAuth-core/pkg/logger"
+import "gogs.baozhida.cn/zoie/OAuth-core/pkg/logger"
 
 type Logger struct {
 	Type      string

+ 2 - 2
sdk/config/queue.go

@@ -3,9 +3,9 @@ package config
 import (
 	"github.com/go-redis/redis/v7"
 	"github.com/robinjoseph08/redisqueue/v2"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage/queue"
 	"time"
-	"git.baozhida.cn/OAuth-core/storage"
-	"git.baozhida.cn/OAuth-core/storage/queue"
 )
 
 type Queue struct {

+ 2 - 2
service/service.go

@@ -3,8 +3,8 @@ package service
 import (
 	"fmt"
 
-	"git.baozhida.cn/OAuth-core/logger"
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/logger"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 	"gorm.io/gorm"
 )
 

+ 1 - 1
storage/cache/message.go

@@ -2,7 +2,7 @@ package cache
 
 import (
 	"github.com/robinjoseph08/redisqueue/v2"
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 type Message struct {

+ 1 - 1
storage/queue/memory.go

@@ -5,7 +5,7 @@ import (
 
 	"github.com/google/uuid"
 
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 type queue chan storage.Messager

+ 1 - 1
storage/queue/memory_test.go

@@ -8,7 +8,7 @@ import (
 	"time"
 
 	"github.com/robinjoseph08/redisqueue/v2"
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 func TestMemory_Append(t *testing.T) {

+ 1 - 1
storage/queue/message.go

@@ -3,7 +3,7 @@ package queue
 import (
 	"github.com/robinjoseph08/redisqueue/v2"
 
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 type Message struct {

+ 1 - 1
storage/queue/nsq.go

@@ -10,7 +10,7 @@ package queue
 import (
 	json "github.com/json-iterator/go"
 	"github.com/nsqio/go-nsq"
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 // NewNSQ nsq模式 只能监听一个channel

+ 1 - 1
storage/queue/redis.go

@@ -4,7 +4,7 @@ import (
 	"github.com/go-redis/redis/v7"
 	"github.com/robinjoseph08/redisqueue/v2"
 
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 // NewRedis redis模式

+ 1 - 1
storage/queue/redis_test.go

@@ -8,7 +8,7 @@ import (
 	"github.com/go-redis/redis/v7"
 	"github.com/robinjoseph08/redisqueue/v2"
 
-	"git.baozhida.cn/OAuth-core/storage"
+	"gogs.baozhida.cn/zoie/OAuth-core/storage"
 )
 
 func TestRedis_Append(t *testing.T) {

+ 1 - 1
tools/gorm/logger/logger.go

@@ -8,7 +8,7 @@ import (
 	"gorm.io/gorm/logger"
 	"gorm.io/gorm/utils"
 
-	loggerCore "git.baozhida.cn/OAuth-core/logger"
+	loggerCore "gogs.baozhida.cn/zoie/OAuth-core/logger"
 )
 
 // Colors

+ 1 - 1
tools/gorm/logger/logger_test.go

@@ -5,8 +5,8 @@ import (
 	"testing"
 	"time"
 
+	logCore "gogs.baozhida.cn/zoie/OAuth-core/logger"
 	"gorm.io/gorm/logger"
-	logCore "git.baozhida.cn/OAuth-core/logger"
 )
 
 func TestNew(t *testing.T) {

+ 1 - 1
tools/transfer/gin.go

@@ -13,7 +13,7 @@ package main
 
 import (
 	"github.com/gin-gonic/gin"
-	"git.baozhida.cn/OAuth-core/transfer"
+	"gogs.baozhida.cn/zoie/OAuth-core/transfer"
 	"github.com/prometheus/client_golang/prometheus/promhttp"
 )