open default globalIsRelated
设置默认全局预加载为true
This commit is contained in:
@@ -20,7 +20,7 @@ var TypeMysqlDicMp = map[string]string{
|
|||||||
"char": "string",
|
"char": "string",
|
||||||
"date": "time.Time",
|
"date": "time.Time",
|
||||||
"datetime": "time.Time",
|
"datetime": "time.Time",
|
||||||
"bit(1)": "int8",
|
"bit(1)": "[]uint8",
|
||||||
"tinyint": "int8",
|
"tinyint": "int8",
|
||||||
"tinyint unsigned": "uint8",
|
"tinyint unsigned": "uint8",
|
||||||
"tinyint(1)": "bool",
|
"tinyint(1)": "bool",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import (
|
|||||||
"github.com/jinzhu/gorm"
|
"github.com/jinzhu/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
var globalIsRelated bool // 全局预加载
|
var globalIsRelated bool = true // 全局预加载
|
||||||
|
|
||||||
// prepare for other
|
// prepare for other
|
||||||
type _BaseMgr struct {
|
type _BaseMgr struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user