package
module
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Jun 25, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BaseCondition struct {
Page *int `json:"page" form:"page"`
Pagesize *int `json:"pagesize" form:"pagesize"`
OrderKey *string `json:"orderKey" form:"orderKey"`
Desc *bool `json:"desc" form:"desc"`
}
type MapResult struct {
Total int64 `json:"total"`
List []map[string]interface{} `json:"list"`
Sum map[string]interface{} `json:"sum"`
}
type WrapDB struct {
Db *gorm.DB
}
func (w *WrapDB) QueryWithStruct(search interface{}, list interface{}, sum interface{}, total *int64) (err error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.