Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagging ¶
type Pagging struct { //number of reacord's limit on each page Limit int `json:"limit" form:"limit"` //pagging Page int `json:"page" form:"page"` }
func (Pagging) GenOffset ¶
func (inputs Pagging) GenOffset(query *gorm.DB) (pg PaggingInfo, err error)
func (Pagging) PageInfoGenerator ¶
func (inputs Pagging) PageInfoGenerator(total int) (pg PaggingInfo)
Click to show internal directories.
Click to hide internal directories.