mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-15 09:10:24 +08:00
优化数据库相关代码
This commit is contained in:
@@ -3,11 +3,8 @@ package dbutils
|
||||
import (
|
||||
"github.com/iwind/TeaGo/dbs"
|
||||
"strings"
|
||||
"sync"
|
||||
)
|
||||
|
||||
var SharedCacheLocker = sync.RWMutex{}
|
||||
|
||||
// NewQuery 构造Query
|
||||
func NewQuery(tx *dbs.Tx, dao dbs.DAOWrapper, adminId int64, userId int64) *dbs.Query {
|
||||
query := dao.Object().Query(tx)
|
||||
|
||||
Reference in New Issue
Block a user