Skip to content

Commit

Permalink
open default globalIsRelated
Browse files Browse the repository at this point in the history
设置默认全局预加载为true
  • Loading branch information
xxjwxc committed Jun 7, 2020
1 parent 16c1218 commit 50d7b76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/view/cnf/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var TypeMysqlDicMp = map[string]string{
"char": "string",
"date": "time.Time",
"datetime": "time.Time",
"bit(1)": "int8",
"bit(1)": "[]uint8",
"tinyint": "int8",
"tinyint unsigned": "uint8",
"tinyint(1)": "bool",
Expand Down
2 changes: 1 addition & 1 deletion data/view/genfunc/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/jinzhu/gorm"
)
var globalIsRelated bool // 全局预加载
var globalIsRelated bool = true // 全局预加载
// prepare for other
type _BaseMgr struct {
Expand Down

0 comments on commit 50d7b76

Please sign in to comment.