From 1d60bf7f138a2c66376d83c875d8167ea525c3bc Mon Sep 17 00:00:00 2001 From: wangjian Date: Wed, 4 Jan 2023 22:16:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gin/b/b.go | 3 +-- gin/binding/default_validator.go | 8 ++++---- gin/binding/form_mapping.go | 4 ++-- gin/binding/json.go | 2 +- go.mod | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/gin/b/b.go b/gin/b/b.go index 759b2e2..15f622b 100644 --- a/gin/b/b.go +++ b/gin/b/b.go @@ -1,8 +1,7 @@ package b import ( - "git.hpds.cc/Component/gin_valid.git/gin/binding" - "git.hpds.cc/Component/gin_valid.git/go-playground/validator/v10" + "git.hpds.cc/Component/gin_valid/gin/binding" "mime" "net/http" ) diff --git a/gin/binding/default_validator.go b/gin/binding/default_validator.go index 70a0e8d..a0b95af 100644 --- a/gin/binding/default_validator.go +++ b/gin/binding/default_validator.go @@ -5,10 +5,10 @@ package binding import ( - "git.hpds.cc/Component/gin_valid.git/go-playground/locales/zh" - ut "git.hpds.cc/Component/gin_valid.git/go-playground/universal-translator" - "git.hpds.cc/Component/gin_valid.git/go-playground/validator/v10" - zhTrans "git.hpds.cc/Component/gin_valid.git/go-playground/validator/v10/translations/zh" + "git.hpds.cc/Component/gin_valid/go-playground/locales/zh" + ut "git.hpds.cc/Component/gin_valid/go-playground/universal-translator" + "git.hpds.cc/Component/gin_valid/go-playground/validator/v10" + zhTrans "git.hpds.cc/Component/gin_valid/go-playground/validator/v10/translations/zh" "reflect" "strings" "sync" diff --git a/gin/binding/form_mapping.go b/gin/binding/form_mapping.go index 5c87d12..2455938 100644 --- a/gin/binding/form_mapping.go +++ b/gin/binding/form_mapping.go @@ -12,8 +12,8 @@ import ( "strings" "time" - "git.hpds.cc/Component/gin_valid.git/gin/internal/bytesconv" - "git.hpds.cc/Component/gin_valid.git/gin/internal/json" + "git.hpds.cc/Component/gin_valid/gin/internal/bytesconv" + "git.hpds.cc/Component/gin_valid/gin/internal/json" ) var errUnknownType = errors.New("unknown type") diff --git a/gin/binding/json.go b/gin/binding/json.go index 3dc1f7f..1331bcf 100644 --- a/gin/binding/json.go +++ b/gin/binding/json.go @@ -10,7 +10,7 @@ import ( "io" "net/http" - "git.hpds.cc/Component/gin_valid.git/gin/internal/json" + "git.hpds.cc/Component/gin_valid/gin/internal/json" ) // EnableDecoderUseNumber is used to call the UseNumber method on the JSON diff --git a/go.mod b/go.mod index 39d1919..5cb4b15 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.hpds.cc/Component/gin_valid.git +module git.hpds.cc/Component/gin_valid go 1.13