shared

package
v0.0.0-...-37234c6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Paginate

func Paginate(p Pagination) func(db *gorm.DB) *gorm.DB

Types

type Pagination

type Pagination struct {
	Total    int `json:"total"`
	PageSize int `json:"page_size"`
	Offset   int `json:"offset"`
}

type SearchParams

type SearchParams struct {
	Pagination
	Search string `json:"search"`
}

Jump to

Keyboard shortcuts

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