Documentation ¶
Index ¶
- type Clause
- func (c *Clause) GetChildren() []IClause
- func (c *Clause) GetField() string
- func (c *Clause) GetOperator() string
- func (c *Clause) GetValue() any
- func (c *Clause) SetChildren(children []IClause)
- func (c *Clause) SetField(field string)
- func (c *Clause) SetOperator(operator string)
- func (c *Clause) SetValue(value any)
- type IClause
- type IPagination
- type ISorting
- type Pagination
- type Sorting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clause ¶
type Clause struct { Field string `json:"field"` Operator string `json:"operator"` Value any `json:"value"` Children []IClause `json:"children"` }
func (*Clause) GetChildren ¶
func (*Clause) GetOperator ¶
func (*Clause) SetChildren ¶
func (*Clause) SetOperator ¶
type IPagination ¶
type Pagination ¶
type Pagination struct { Page int `form:"page" json:"page"` Size int `form:"size" json:"size"` Total int64 `form:"-" json:"total"` // this field is used in response, not in query }
func (*Pagination) GetPage ¶
func (p *Pagination) GetPage() int
func (*Pagination) GetSize ¶
func (p *Pagination) GetSize() int
func (*Pagination) GetTotal ¶
func (p *Pagination) GetTotal() int64
func (*Pagination) SetPage ¶
func (p *Pagination) SetPage(page int)
func (*Pagination) SetSize ¶
func (p *Pagination) SetSize(size int)
func (*Pagination) SetTotal ¶
func (p *Pagination) SetTotal(total int64)
Click to show internal directories.
Click to hide internal directories.