Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PaginateV2 ¶
func PaginateV3 ¶
func PaginateV3(value interface{}, db *gorm.DB, pagination *Pagination) error
Types ¶
type PaginateReq ¶
type Pagination ¶
type Pagination struct { PaginateReq TotalRows int64 `json:"total_rows"` TotalPages int `json:"total_pages"` Rows interface{} `json:"rows"` }
func Filter ¶
func Filter(limit, page *int, sort, direction *string) *Pagination
func (*Pagination) GetLimit ¶
func (p *Pagination) GetLimit() int
func (*Pagination) GetOffset ¶
func (p *Pagination) GetOffset() int
func (*Pagination) GetPage ¶
func (p *Pagination) GetPage() int
func (*Pagination) GetSort ¶
func (p *Pagination) GetSort() string
Click to show internal directories.
Click to hide internal directories.