package
Version:
v0.0.0-...-31a0336
Opens a new window with list of versions in this module.
Published: Jan 20, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
common/gorm
query
整合多条件查询数据库,并携带上下文分页排序计数等信息。
Documentation
¶
type Filter struct {
Query string
Args []interface{}
}
Filter 数据库查询条件 Where
Query 数据库查询请求
func (qr *Query) QueryDB(result interface{}) error
QueryDB 数据库查询
Limit == -1 时不分页
Source Files
¶
Click to show internal directories.
Click to hide internal directories.