Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultMaxPageSize ¶
func GetDefaultMaxPageSize() int
func SetDefaultMaxPageSize ¶
func SetDefaultMaxPageSize(maxSize int)
Types ¶
type Pagination ¶
type Pagination[T any] struct { PageSize int `json:"page_size"` PageNo int `json:"page_no"` SearchOption T `json:"search_option"` // 查询条件 }
func (*Pagination[T]) Limit ¶
func (p *Pagination[T]) Limit() int
func (*Pagination[T]) Offset ¶
func (p *Pagination[T]) Offset() int
Click to show internal directories.
Click to hide internal directories.