Documentation ¶
Index ¶
- func Find[T any](db *gdb.Model, orderBy []sys_model.OrderBy, ...) (response *sys_model.CollectRes[T], err error)
- func GetAll[T any](db *gdb.Model, info *sys_model.Pagination) (response *sys_model.CollectRes[T], err error)
- func GetById[T any](db *gdb.Model, id int64) *T
- func Query[T any](db *gdb.Model, searchFields *sys_model.SearchParams, IsExport bool) (response *sys_model.CollectRes[T], err error)
- func RemoveQueryCache(db gdb.DB, prefix string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
func Find[T any](db *gdb.Model, orderBy []sys_model.OrderBy, searchFields ...sys_model.FilterInfo) (response *sys_model.CollectRes[T], err error)
func GetAll ¶
func GetAll[T any](db *gdb.Model, info *sys_model.Pagination) (response *sys_model.CollectRes[T], err error)
func Query ¶
func Query[T any](db *gdb.Model, searchFields *sys_model.SearchParams, IsExport bool) (response *sys_model.CollectRes[T], err error)
func RemoveQueryCache ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.