From 52205b42c8223dd5b1099a7e6b4d90151a875dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 27 Nov 2026 22:58:26 -0800 Subject: [PATCH] =?UTF-8?q?chore(module):=20=E6=9B=B4=E6=96=B0=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E5=9C=B0=E5=9D=80=E5=8F=8A=E6=A8=A1=E5=9D=97=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- config/load.go | 2 +- config/load_test.go | 2 +- database/connection.go | 4 ++-- database/connection_test.go | 2 +- database/sqllog/logger.go | 4 ++-- docs/getting-started.md | 6 +++--- examples/application/main.go | 14 +++++++------- examples/application/main_test.go | 8 ++++---- examples/minimal/main.go | 4 ++-- examples/openapi/main.go | 6 +++--- go.mod | 2 +- http/budget.go | 2 +- http/context_flow_test.go | 12 ++++++------ http/health.go | 2 +- http/openapi.go | 4 ++-- http/p1_test.go | 6 +++--- http/request/body.go | 2 +- http/request/form.go | 2 +- http/request/init.go | 2 +- http/request/validation.go | 2 +- http/response.go | 10 +++++----- http/routes.go | 4 ++-- http/server.go | 8 ++++---- http/server_test.go | 2 +- httpclient/client.go | 4 ++-- httpclient/client_test.go | 4 ++-- httpclient/example_test.go | 2 +- httpclient/multipart.go | 2 +- httpclient/request.go | 4 ++-- internal/failure/error.go | 4 ++-- logger/output_test.go | 4 ++-- logger/record.go | 4 ++-- logger/storagevalue/value.go | 2 +- redis/client.go | 4 ++-- redis/client_test.go | 4 ++-- redis/commandlog/hook.go | 2 +- redis/commandlog/hook_test.go | 2 +- script/verify/main.go | 2 +- 39 files changed, 81 insertions(+), 81 deletions(-) diff --git a/README.md b/README.md index 673bed7..d17ec6e 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ 围绕 Gin、GORM/MySQL、Zap、go-redis 和原生 HTTP Client 的独立 Go 基础库。统一请求处理、配置、诊断和资源生命周期,业务认证、审计和供应商策略由消费应用负责。 -- 源码:[git.zhangdeman.cn/github/ginframework](https://git.zhangdeman.cn/github/ginframework) -- Module:`git.zhangdeman.cn/github/ginframework` +- 源码:[git.zhangdeman.cn/zhangdeman/ginframework](https://git.zhangdeman.cn/zhangdeman/ginframework) +- Module:`git.zhangdeman.cn/zhangdeman/ginframework` - 工具链:Go 1.27.0;当前尚未发布版本 tag。 ## 接入使用 @@ -11,7 +11,7 @@ **[接入使用指南](docs/getting-started.md)** 是统一能力清单和使用入口,覆盖安装、最小服务、参数绑定、认证适配、日志、MySQL、Redis、出站 HTTP、SSE 和退出顺序。新增、移除及改变能力须同步该指南,公开包清单纳入 make verify。 ```sh -go get git.zhangdeman.cn/github/ginframework@codex/initial-framework +go get git.zhangdeman.cn/zhangdeman/ginframework@codex/initial-framework ``` 检出本仓库后运行最小 HTTP 示例: diff --git a/config/load.go b/config/load.go index d5b1ff0..adb5067 100644 --- a/config/load.go +++ b/config/load.go @@ -8,7 +8,7 @@ import ( "os" "reflect" - fault "git.zhangdeman.cn/github/ginframework/internal/failure" + fault "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "github.com/goccy/go-yaml" ) diff --git a/config/load_test.go b/config/load_test.go index 3fdd80d..392640d 100644 --- a/config/load_test.go +++ b/config/load_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "git.zhangdeman.cn/github/ginframework/fault" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" ) func TestStrictEnvironmentAndOptionalValues(t *testing.T) { diff --git a/database/connection.go b/database/connection.go index 48d96f0..a11f6aa 100644 --- a/database/connection.go +++ b/database/connection.go @@ -9,8 +9,8 @@ import ( "strconv" "time" - "git.zhangdeman.cn/github/ginframework/database/sqllog" - fault "git.zhangdeman.cn/github/ginframework/internal/failure" + "git.zhangdeman.cn/zhangdeman/ginframework/database/sqllog" + fault "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" mysqlDriver "github.com/go-sql-driver/mysql" "go.uber.org/zap" "gorm.io/driver/mysql" diff --git a/database/connection_test.go b/database/connection_test.go index dd86335..b4780b6 100644 --- a/database/connection_test.go +++ b/database/connection_test.go @@ -5,7 +5,7 @@ import ( "errors" "testing" - "git.zhangdeman.cn/github/ginframework/fault" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" "gorm.io/driver/sqlite" "gorm.io/gorm" ) diff --git a/database/sqllog/logger.go b/database/sqllog/logger.go index 2fdc616..508f1c0 100644 --- a/database/sqllog/logger.go +++ b/database/sqllog/logger.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "git.zhangdeman.cn/github/ginframework/logger/storagevalue" + "git.zhangdeman.cn/zhangdeman/ginframework/logger/storagevalue" - "git.zhangdeman.cn/github/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" "go.uber.org/zap" "gorm.io/gorm" gormLogger "gorm.io/gorm/logger" diff --git a/docs/getting-started.md b/docs/getting-started.md index 0a1e9e7..96d5c44 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -4,12 +4,12 @@ ## 1. 安装与版本 -源码仓库:[github/ginframework](https://git.zhangdeman.cn/github/ginframework)。Go module 与源码地址一致:`git.zhangdeman.cn/github/ginframework`。 +源码仓库:[zhangdeman/ginframework](https://git.zhangdeman.cn/zhangdeman/ginframework)。仓库由 `github/ginframework` 迁移至 `zhangdeman/ginframework`,已有消费项目需同步替换旧 module 依赖及全部导入路径;本库不提供旧路径兼容层。Go module 与源码地址一致:`git.zhangdeman.cn/zhangdeman/ginframework`。 当前需要 Go 1.27.0。库尚未发布版本 tag;首次接入使用初始开发分支,Go 会将分支解析为固定伪版本写入消费项目的 go.mod: ```sh -go get git.zhangdeman.cn/github/ginframework@codex/initial-framework +go get git.zhangdeman.cn/zhangdeman/ginframework@codex/initial-framework go mod tidy ``` @@ -73,7 +73,7 @@ func (*Example) Ping(ctx *gin.Context, form *PingForm) (*PingOutput, error) { } ``` -其中 `framework` 是 `git.zhangdeman.cn/github/ginframework/http` 的导入别名,`gin` 是 `github.com/gin-gonic/gin`。启动函数中装配: +其中 `framework` 是 `git.zhangdeman.cn/zhangdeman/ginframework/http` 的导入别名,`gin` 是 `github.com/gin-gonic/gin`。启动函数中装配: ```go server, err := framework.NewServer(framework.Config{ diff --git a/examples/application/main.go b/examples/application/main.go index cf12364..8f02e03 100644 --- a/examples/application/main.go +++ b/examples/application/main.go @@ -11,13 +11,13 @@ import ( "syscall" "time" - "git.zhangdeman.cn/github/ginframework/config" - "git.zhangdeman.cn/github/ginframework/database" - "git.zhangdeman.cn/github/ginframework/fault" - framework "git.zhangdeman.cn/github/ginframework/http" - "git.zhangdeman.cn/github/ginframework/httpclient" - "git.zhangdeman.cn/github/ginframework/logger" - cache "git.zhangdeman.cn/github/ginframework/redis" + "git.zhangdeman.cn/zhangdeman/ginframework/config" + "git.zhangdeman.cn/zhangdeman/ginframework/database" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" + framework "git.zhangdeman.cn/zhangdeman/ginframework/http" + "git.zhangdeman.cn/zhangdeman/ginframework/httpclient" + "git.zhangdeman.cn/zhangdeman/ginframework/logger" + cache "git.zhangdeman.cn/zhangdeman/ginframework/redis" "github.com/gin-gonic/gin" redisclient "github.com/redis/go-redis/v9" ) diff --git a/examples/application/main_test.go b/examples/application/main_test.go index 62b40a5..309ed7a 100644 --- a/examples/application/main_test.go +++ b/examples/application/main_test.go @@ -8,10 +8,10 @@ import ( "testing" "time" - "git.zhangdeman.cn/github/ginframework/database" - "git.zhangdeman.cn/github/ginframework/httpclient" - "git.zhangdeman.cn/github/ginframework/logger" - cache "git.zhangdeman.cn/github/ginframework/redis" + "git.zhangdeman.cn/zhangdeman/ginframework/database" + "git.zhangdeman.cn/zhangdeman/ginframework/httpclient" + "git.zhangdeman.cn/zhangdeman/ginframework/logger" + cache "git.zhangdeman.cn/zhangdeman/ginframework/redis" redisclient "github.com/redis/go-redis/v9" "gorm.io/driver/sqlite" ) diff --git a/examples/minimal/main.go b/examples/minimal/main.go index 32807c4..dade1e3 100644 --- a/examples/minimal/main.go +++ b/examples/minimal/main.go @@ -9,8 +9,8 @@ import ( "syscall" "time" - framework "git.zhangdeman.cn/github/ginframework/http" - "git.zhangdeman.cn/github/ginframework/logger" + framework "git.zhangdeman.cn/zhangdeman/ginframework/http" + "git.zhangdeman.cn/zhangdeman/ginframework/logger" "github.com/gin-gonic/gin" ) diff --git a/examples/openapi/main.go b/examples/openapi/main.go index 4516ee0..2cde107 100644 --- a/examples/openapi/main.go +++ b/examples/openapi/main.go @@ -6,9 +6,9 @@ import ( "flag" "os" - "git.zhangdeman.cn/github/ginframework/fault" - framework "git.zhangdeman.cn/github/ginframework/http" - "git.zhangdeman.cn/github/ginframework/logger" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" + framework "git.zhangdeman.cn/zhangdeman/ginframework/http" + "git.zhangdeman.cn/zhangdeman/ginframework/logger" "github.com/getkin/kin-openapi/openapi3" "github.com/gin-gonic/gin" ) diff --git a/go.mod b/go.mod index 2104562..876d4c0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.zhangdeman.cn/github/ginframework +module git.zhangdeman.cn/zhangdeman/ginframework go 1.27.0 diff --git a/http/budget.go b/http/budget.go index 8619c30..f2a2eb8 100644 --- a/http/budget.go +++ b/http/budget.go @@ -5,7 +5,7 @@ import ( "errors" "net/http" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "github.com/gin-gonic/gin" ) diff --git a/http/context_flow_test.go b/http/context_flow_test.go index cef45af..d5fbf82 100644 --- a/http/context_flow_test.go +++ b/http/context_flow_test.go @@ -12,12 +12,12 @@ import ( "strings" "testing" - "git.zhangdeman.cn/github/ginframework/database" - "git.zhangdeman.cn/github/ginframework/diagnostic" - "git.zhangdeman.cn/github/ginframework/httpclient" - "git.zhangdeman.cn/github/ginframework/internal/testutil/redisserver" - "git.zhangdeman.cn/github/ginframework/logger" - "git.zhangdeman.cn/github/ginframework/redis/commandlog" + "git.zhangdeman.cn/zhangdeman/ginframework/database" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/httpclient" + "git.zhangdeman.cn/zhangdeman/ginframework/internal/testutil/redisserver" + "git.zhangdeman.cn/zhangdeman/ginframework/logger" + "git.zhangdeman.cn/zhangdeman/ginframework/redis/commandlog" "github.com/gin-gonic/gin" redisclient "github.com/redis/go-redis/v9" "go.uber.org/zap" diff --git a/http/health.go b/http/health.go index 0391f58..1a93c37 100644 --- a/http/health.go +++ b/http/health.go @@ -7,7 +7,7 @@ import ( "strings" "time" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "github.com/gin-gonic/gin" ) diff --git a/http/openapi.go b/http/openapi.go index 1b05cd9..5509341 100644 --- a/http/openapi.go +++ b/http/openapi.go @@ -9,8 +9,8 @@ import ( "reflect" "strings" - "git.zhangdeman.cn/github/ginframework/http/request" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" + "git.zhangdeman.cn/zhangdeman/ginframework/http/request" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "github.com/getkin/kin-openapi/openapi3" ) diff --git a/http/p1_test.go b/http/p1_test.go index f8ba5b7..d96106b 100644 --- a/http/p1_test.go +++ b/http/p1_test.go @@ -12,9 +12,9 @@ import ( "testing" "time" - "git.zhangdeman.cn/github/ginframework/diagnostic" - "git.zhangdeman.cn/github/ginframework/http/request" - "git.zhangdeman.cn/github/ginframework/logger" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/http/request" + "git.zhangdeman.cn/zhangdeman/ginframework/logger" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" ) diff --git a/http/request/body.go b/http/request/body.go index ffe048e..3384162 100644 --- a/http/request/body.go +++ b/http/request/body.go @@ -6,7 +6,7 @@ import ( "io" "net/http" - fault "git.zhangdeman.cn/github/ginframework/internal/failure" + fault "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "github.com/gin-gonic/gin" ) diff --git a/http/request/form.go b/http/request/form.go index 0025828..3cd2dd9 100644 --- a/http/request/form.go +++ b/http/request/form.go @@ -14,7 +14,7 @@ import ( "reflect" "strings" - fault "git.zhangdeman.cn/github/ginframework/internal/failure" + fault "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" diff --git a/http/request/init.go b/http/request/init.go index a13d086..022412c 100644 --- a/http/request/init.go +++ b/http/request/init.go @@ -5,7 +5,7 @@ import ( "strings" "sync" - fault "git.zhangdeman.cn/github/ginframework/internal/failure" + fault "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "github.com/gin-gonic/gin/binding" "github.com/go-playground/validator/v10" ) diff --git a/http/request/validation.go b/http/request/validation.go index 6a6cb70..88e2e71 100644 --- a/http/request/validation.go +++ b/http/request/validation.go @@ -7,7 +7,7 @@ import ( "regexp" "strings" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "github.com/go-playground/validator/v10" ) diff --git a/http/response.go b/http/response.go index 2b29d38..53d4154 100644 --- a/http/response.go +++ b/http/response.go @@ -7,11 +7,11 @@ import ( "net/http" "time" - "git.zhangdeman.cn/github/ginframework/diagnostic" - "git.zhangdeman.cn/github/ginframework/fault" - "git.zhangdeman.cn/github/ginframework/http/request" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" - "git.zhangdeman.cn/github/ginframework/logger" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" + "git.zhangdeman.cn/zhangdeman/ginframework/http/request" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" + "git.zhangdeman.cn/zhangdeman/ginframework/logger" "github.com/gin-gonic/gin" ) diff --git a/http/routes.go b/http/routes.go index 674a50f..c203f06 100644 --- a/http/routes.go +++ b/http/routes.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "git.zhangdeman.cn/github/ginframework/http/request" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" + "git.zhangdeman.cn/zhangdeman/ginframework/http/request" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "github.com/gin-gonic/gin" "github.com/mcuadros/go-defaults" ) diff --git a/http/server.go b/http/server.go index 6e1d73b..943e52b 100644 --- a/http/server.go +++ b/http/server.go @@ -10,10 +10,10 @@ import ( "sync/atomic" "time" - "git.zhangdeman.cn/github/ginframework/diagnostic" - "git.zhangdeman.cn/github/ginframework/fault" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" - "git.zhangdeman.cn/github/ginframework/logger" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" + "git.zhangdeman.cn/zhangdeman/ginframework/logger" "github.com/gin-gonic/gin" "github.com/google/uuid" "go.uber.org/zap" diff --git a/http/server_test.go b/http/server_test.go index 24ab794..e29cd52 100644 --- a/http/server_test.go +++ b/http/server_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "git.zhangdeman.cn/github/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" "github.com/gin-gonic/gin" ) diff --git a/httpclient/client.go b/httpclient/client.go index c6cd798..d396b4e 100644 --- a/httpclient/client.go +++ b/httpclient/client.go @@ -7,8 +7,8 @@ import ( "net/http" "time" - "git.zhangdeman.cn/github/ginframework/diagnostic" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" "go.uber.org/zap" ) diff --git a/httpclient/client_test.go b/httpclient/client_test.go index 69a5940..191f6c5 100644 --- a/httpclient/client_test.go +++ b/httpclient/client_test.go @@ -19,8 +19,8 @@ import ( "testing" "time" - "git.zhangdeman.cn/github/ginframework/diagnostic" - "git.zhangdeman.cn/github/ginframework/fault" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" "go.uber.org/zap" "go.uber.org/zap/zaptest/observer" ) diff --git a/httpclient/example_test.go b/httpclient/example_test.go index 3071a73..782b542 100644 --- a/httpclient/example_test.go +++ b/httpclient/example_test.go @@ -6,7 +6,7 @@ import ( "net/http" "net/http/httptest" - "git.zhangdeman.cn/github/ginframework/httpclient" + "git.zhangdeman.cn/zhangdeman/ginframework/httpclient" ) func ExampleClient_Send() { diff --git a/httpclient/multipart.go b/httpclient/multipart.go index a1ed087..197ae05 100644 --- a/httpclient/multipart.go +++ b/httpclient/multipart.go @@ -8,7 +8,7 @@ import ( "sort" "strings" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" ) // File 是已有内存内容的上传文件,不在编码阶段打开文件或启动后台协程。 diff --git a/httpclient/request.go b/httpclient/request.go index 712b3d5..27b77b2 100644 --- a/httpclient/request.go +++ b/httpclient/request.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "git.zhangdeman.cn/github/ginframework/diagnostic" - failure "git.zhangdeman.cn/github/ginframework/internal/failure" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" + failure "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" ) // Request 描述单次请求,不保存跨请求的可变参数或供应商成功规则。 diff --git a/internal/failure/error.go b/internal/failure/error.go index 10db4e5..c6c6b94 100644 --- a/internal/failure/error.go +++ b/internal/failure/error.go @@ -4,8 +4,8 @@ package failure import ( "context" - "git.zhangdeman.cn/github/ginframework/fault" - "git.zhangdeman.cn/github/ginframework/logger" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" + "git.zhangdeman.cn/zhangdeman/ginframework/logger" ) // Wrap 在首次接收原始错误时增加场景并记录,已经分类的错误直接传播。 diff --git a/logger/output_test.go b/logger/output_test.go index ce8c791..5d8af10 100644 --- a/logger/output_test.go +++ b/logger/output_test.go @@ -5,8 +5,8 @@ import ( "context" "encoding/json" "errors" - "git.zhangdeman.cn/github/ginframework/diagnostic" - "git.zhangdeman.cn/github/ginframework/fault" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" "os" "path/filepath" "strings" diff --git a/logger/record.go b/logger/record.go index 59ecdd1..b43597e 100644 --- a/logger/record.go +++ b/logger/record.go @@ -6,8 +6,8 @@ import ( "fmt" "os" - "git.zhangdeman.cn/github/ginframework/diagnostic" - "git.zhangdeman.cn/github/ginframework/logger/storagevalue" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/logger/storagevalue" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) diff --git a/logger/storagevalue/value.go b/logger/storagevalue/value.go index dd76c53..79403ea 100644 --- a/logger/storagevalue/value.go +++ b/logger/storagevalue/value.go @@ -8,7 +8,7 @@ import ( "reflect" "strings" - "git.zhangdeman.cn/github/ginframework/diagnostic" + "git.zhangdeman.cn/zhangdeman/ginframework/diagnostic" "go.uber.org/zap" ) diff --git a/redis/client.go b/redis/client.go index 0afcf37..ce2cfd8 100644 --- a/redis/client.go +++ b/redis/client.go @@ -6,8 +6,8 @@ import ( "errors" "time" - fault "git.zhangdeman.cn/github/ginframework/internal/failure" - "git.zhangdeman.cn/github/ginframework/redis/commandlog" + fault "git.zhangdeman.cn/zhangdeman/ginframework/internal/failure" + "git.zhangdeman.cn/zhangdeman/ginframework/redis/commandlog" redisclient "github.com/redis/go-redis/v9" "go.uber.org/zap" ) diff --git a/redis/client_test.go b/redis/client_test.go index a82746f..bad520b 100644 --- a/redis/client_test.go +++ b/redis/client_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "git.zhangdeman.cn/github/ginframework/fault" - "git.zhangdeman.cn/github/ginframework/internal/testutil/redisserver" + "git.zhangdeman.cn/zhangdeman/ginframework/fault" + "git.zhangdeman.cn/zhangdeman/ginframework/internal/testutil/redisserver" ) func TestOpenNativeClientAndProbeFailure(t *testing.T) { diff --git a/redis/commandlog/hook.go b/redis/commandlog/hook.go index 3de66cb..4c0547d 100644 --- a/redis/commandlog/hook.go +++ b/redis/commandlog/hook.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "git.zhangdeman.cn/github/ginframework/logger/storagevalue" + "git.zhangdeman.cn/zhangdeman/ginframework/logger/storagevalue" "github.com/redis/go-redis/v9" "go.uber.org/zap" diff --git a/redis/commandlog/hook_test.go b/redis/commandlog/hook_test.go index acfad08..32f6a04 100644 --- a/redis/commandlog/hook_test.go +++ b/redis/commandlog/hook_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "git.zhangdeman.cn/github/ginframework/internal/testutil/redisserver" + "git.zhangdeman.cn/zhangdeman/ginframework/internal/testutil/redisserver" "github.com/redis/go-redis/v9" "go.uber.org/zap" diff --git a/script/verify/main.go b/script/verify/main.go index 2f415d1..7025ace 100644 --- a/script/verify/main.go +++ b/script/verify/main.go @@ -41,7 +41,7 @@ func main() { // 入参:formatCheck 决定检查格式,architecture 决定检查生产 import。 // 返回:第一个解析、格式或架构违规,附文件和必要位置。 func run(formatCheck bool, architecture bool) error { - const module = "git.zhangdeman.cn/github/ginframework" + const module = "git.zhangdeman.cn/zhangdeman/ginframework" return filepath.WalkDir(".", func(path string, entry fs.DirEntry, walkErr error) error { if walkErr != nil { return walkErr