mongo.go重构
This commit is contained in:
@@ -2,21 +2,15 @@ package dao
|
||||
|
||||
import (
|
||||
"context"
|
||||
"gitee.com/red-future---jilin-g/common/mongo"
|
||||
"oss/consts"
|
||||
"oss/model/entity"
|
||||
|
||||
"gitee.com/red-future---jilin-g/common/mongo"
|
||||
)
|
||||
|
||||
var File = &file{
|
||||
NoCache: false,
|
||||
}
|
||||
var File = &file{}
|
||||
|
||||
type file struct {
|
||||
NoCache bool
|
||||
}
|
||||
|
||||
func (d *file) SetNoCache() {
|
||||
File.NoCache = true
|
||||
}
|
||||
|
||||
// Insert 插入
|
||||
|
||||
Reference in New Issue
Block a user