This commit is contained in:
wangjian 2023-01-04 22:16:08 +08:00
parent c4b087d990
commit 1d60bf7f13
5 changed files with 9 additions and 10 deletions

View File

@ -1,8 +1,7 @@
package b package b
import ( import (
"git.hpds.cc/Component/gin_valid.git/gin/binding" "git.hpds.cc/Component/gin_valid/gin/binding"
"git.hpds.cc/Component/gin_valid.git/go-playground/validator/v10"
"mime" "mime"
"net/http" "net/http"
) )

View File

@ -5,10 +5,10 @@
package binding package binding
import ( import (
"git.hpds.cc/Component/gin_valid.git/go-playground/locales/zh" "git.hpds.cc/Component/gin_valid/go-playground/locales/zh"
ut "git.hpds.cc/Component/gin_valid.git/go-playground/universal-translator" ut "git.hpds.cc/Component/gin_valid/go-playground/universal-translator"
"git.hpds.cc/Component/gin_valid.git/go-playground/validator/v10" "git.hpds.cc/Component/gin_valid/go-playground/validator/v10"
zhTrans "git.hpds.cc/Component/gin_valid.git/go-playground/validator/v10/translations/zh" zhTrans "git.hpds.cc/Component/gin_valid/go-playground/validator/v10/translations/zh"
"reflect" "reflect"
"strings" "strings"
"sync" "sync"

View File

@ -12,8 +12,8 @@ import (
"strings" "strings"
"time" "time"
"git.hpds.cc/Component/gin_valid.git/gin/internal/bytesconv" "git.hpds.cc/Component/gin_valid/gin/internal/bytesconv"
"git.hpds.cc/Component/gin_valid.git/gin/internal/json" "git.hpds.cc/Component/gin_valid/gin/internal/json"
) )
var errUnknownType = errors.New("unknown type") var errUnknownType = errors.New("unknown type")

View File

@ -10,7 +10,7 @@ import (
"io" "io"
"net/http" "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 // EnableDecoderUseNumber is used to call the UseNumber method on the JSON

2
go.mod
View File

@ -1,4 +1,4 @@
module git.hpds.cc/Component/gin_valid.git module git.hpds.cc/Component/gin_valid
go 1.13 go 1.13