sort tables by name
fix typo
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
"github.com/jinzhu/gorm"
|
||||
)
|
||||
|
||||
var gloabIsRelated bool // 全局预加载
|
||||
var globalIsRelated bool // 全局预加载
|
||||
|
||||
// prepare for outher
|
||||
// prepare for other
|
||||
type _BaseMgr struct {
|
||||
*gorm.DB
|
||||
ctx *context.Context
|
||||
@@ -57,10 +57,10 @@ func (f optionFunc) apply(o *options) {
|
||||
|
||||
// OpenRelated 打开全局预加载
|
||||
func OpenRelated() {
|
||||
gloabIsRelated = true
|
||||
globalIsRelated = true
|
||||
}
|
||||
|
||||
// CloseRelated 关闭全局预加载
|
||||
func CloseRelated() {
|
||||
gloabIsRelated = true
|
||||
globalIsRelated = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user