PagePlus

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Page

func Page[T comparable](params []page.Param, pageNum int, pageSize int, m interface{}, data []T, orderBy string, db *gorm.DB) *page.Data

func PageNoCount added in v0.0.51

func PageNoCount[T comparable](params []page.Param, pageNum int, pageSize int, m interface{}, data []T, orderBy string, db *gorm.DB) *page.Data

func PageNoCountV2 added in v0.0.96

func PageNoCountV2[T comparable](params []page.Param, pageNum int, pageSize int, m interface{}, data []T, orderBy string, db *gorm.DB) *page.Data

func PageSql

func PageSql[T comparable](db *gorm.DB, data []T, pageNum int, pageSize int, sql string, sqlParams []interface{}) *page.Data

func PageSqlNoCount added in v0.0.15

func PageSqlNoCount[T comparable](db *gorm.DB, data []T, pageNum int, pageSize int, sql string, sqlParams []interface{}) []T

func PageV2 added in v0.0.96

func PageV2[T comparable](params []page.Param, pageNum int, pageSize int, m interface{}, data []T, orderBy string, db *gorm.DB) *page.Data

func Query added in v0.0.50

func Query[T comparable](params []page.Param, m interface{}, data []T, orderBy string, db *gorm.DB) []T

func QueryV2 added in v0.0.96

func QueryV2[T comparable](params []page.Param, m interface{}, data []T, orderBy string, db *gorm.DB) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL