Fix lint and format code in client/orm dir

This commit is contained in:
loyalsoldier
2021-06-06 20:52:38 +08:00
parent ca328208cc
commit 1b8c801ec6
32 changed files with 108 additions and 137 deletions

View File

@@ -32,9 +32,7 @@ const (
defaultStructTagDelim = ";"
)
var (
modelCache = NewModelCacheHandler()
)
var modelCache = NewModelCacheHandler()
// model info collection
type _modelCache struct {
@@ -332,7 +330,6 @@ end:
// register register models to model cache
func (mc *_modelCache) register(prefixOrSuffixStr string, prefixOrSuffix bool, models ...interface{}) (err error) {
for _, model := range models {
val := reflect.ValueOf(model)
typ := reflect.Indirect(val).Type()