From ad45149acac9242bee5f8a26a8af389de5777de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Mon, 18 Dec 2023 08:48:14 +0800 Subject: [PATCH] Fix package name --- clients/gohttp/go.mod | 2 +- clients/gohttp/httpd/midware/guard.go | 3 ++- clients/gohttp/httpd/server.go | 6 +++--- clients/gohttp/httpd/wcfrest/controller.go | 4 ++-- clients/gohttp/main.go | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/clients/gohttp/go.mod b/clients/gohttp/go.mod index e991c0a2..2b3c1e04 100644 --- a/clients/gohttp/go.mod +++ b/clients/gohttp/go.mod @@ -1,4 +1,4 @@ -module github.com/opentdp/wechat-rest +module wechat-rest go 1.21 diff --git a/clients/gohttp/httpd/midware/guard.go b/clients/gohttp/httpd/midware/guard.go index 0f88b185..af82d288 100644 --- a/clients/gohttp/httpd/midware/guard.go +++ b/clients/gohttp/httpd/midware/guard.go @@ -4,7 +4,8 @@ import ( "strings" "github.com/gin-gonic/gin" - "github.com/opentdp/wechat-rest/args" + + "wechat-rest/args" ) func AuthGuard(c *gin.Context) { diff --git a/clients/gohttp/httpd/server.go b/clients/gohttp/httpd/server.go index a3dad476..7d0e9df4 100644 --- a/clients/gohttp/httpd/server.go +++ b/clients/gohttp/httpd/server.go @@ -3,9 +3,9 @@ package httpd import ( "github.com/opentdp/go-helper/httpd" - "github.com/opentdp/wechat-rest/args" - "github.com/opentdp/wechat-rest/httpd/midware" - "github.com/opentdp/wechat-rest/httpd/wcfrest" + "wechat-rest/args" + "wechat-rest/httpd/midware" + "wechat-rest/httpd/wcfrest" ) // @title Wechat Rest API diff --git a/clients/gohttp/httpd/wcfrest/controller.go b/clients/gohttp/httpd/wcfrest/controller.go index 54407a89..a6084c7e 100644 --- a/clients/gohttp/httpd/wcfrest/controller.go +++ b/clients/gohttp/httpd/wcfrest/controller.go @@ -7,9 +7,9 @@ import ( "github.com/opentdp/go-helper/logman" "github.com/opentdp/go-helper/request" "github.com/opentdp/go-helper/strutil" - - "github.com/opentdp/wechat-rest/args" "github.com/opentdp/wechat-rest/wcferry" + + "wechat-rest/args" ) var wc *wcferry.Client diff --git a/clients/gohttp/main.go b/clients/gohttp/main.go index 93eaacf6..1988b6e0 100644 --- a/clients/gohttp/main.go +++ b/clients/gohttp/main.go @@ -3,8 +3,8 @@ package main import ( "embed" - "github.com/opentdp/wechat-rest/args" - "github.com/opentdp/wechat-rest/httpd" + "wechat-rest/args" + "wechat-rest/httpd" ) //go:embed public