Documentation ¶
Index ¶
Constants ¶
View Source
const ( PAGE = 1 PAGE_SIZE = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Paging ¶
func NewPaging2 ¶
type PagingResult ¶
type PagingResult[T any] struct { Count int64 `json:"count"` Current int `json:"current"` PageSize int `json:"pageSize"` Results T `json:"results"` TotalPage int64 `json:"totalPage"` }
func NewPagingResult ¶
func NewPagingResult[T any](paging Paging, count int64) *PagingResult[T]
func NewPagingResult2 ¶
func NewPagingResult2[T any](paging Paging) *PagingResult[T]
func (*PagingResult[T]) GetTotalPage ¶
func (pr *PagingResult[T]) GetTotalPage() int64
func (*PagingResult[T]) SetTotalPage ¶
func (pr *PagingResult[T]) SetTotalPage()
Click to show internal directories.
Click to hide internal directories.