open default globalIsRelated

设置默认全局预加载为true
master
xxjwxc 4 years ago
parent 16c12187f5
commit 50d7b764b6

@ -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",

@ -15,7 +15,7 @@ import (
"github.com/jinzhu/gorm"
)
var globalIsRelated bool // 全局预加载
var globalIsRelated bool = true // 全局预加载
// prepare for other
type _BaseMgr struct {

Loading…
Cancel
Save