Documentation
¶
Index ¶
- type Option
- type Page
- func (p *Page) Count() bool
- func (p *Page) CountColumn() string
- func (p *Page) Limit() uint64
- func (p *Page) Offset() uint64
- func (p *Page) OrderBy() string
- func (p *Page) PageNum() uint64
- func (p *Page) PageSize() uint64
- func (p *Page) Pages() uint64
- func (p *Page) SetTotal(total uint64)
- func (p *Page) Total() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(p *Page)
func CountColumn ¶
func OrderByOnly ¶ added in v1.0.1
func UnsafeOrderBy ¶
UnsafeOrderBy 不安全的设置排序方法,如果从前端接收参数,请自行做好注入校验。
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
func (*Page) CountColumn ¶
Click to show internal directories.
Click to hide internal directories.