Documentation ¶
Index ¶
- Constants
- func Asc() string
- func AvgRaw(column, alias string) string
- func CaseWhenNull(column, alias string, defaultValue interface{}) string
- func Desc() string
- func FindPageList[T any](ctx context.Context, cc GormcCacheConn, page *ListReq, orderBy OrderBy, ...) ([]T, int64, error)
- func Paginate(page *ListReq) func(db *gorm.DB) *gorm.DB
- func SetTableSortAsc(key string)
- func SetTableSortDesc(key string)
- func TimeRange(startTime, endTime *time.Time) func(db *gorm.DB) *gorm.DB
- func TimeRangeByTable(tableName string, startTime, endTime *time.Time) func(db *gorm.DB) *gorm.DB
- type GormcCacheConn
- type ListReq
- type OrderBy
Constants ¶
View Source
const PageLimit = 20
Variables ¶
This section is empty.
Functions ¶
func CaseWhenNull ¶
func FindPageList ¶
func SetTableSortAsc ¶
func SetTableSortAsc(key string)
func SetTableSortDesc ¶
func SetTableSortDesc(key string)
Types ¶
type GormcCacheConn ¶
Click to show internal directories.
Click to hide internal directories.