Versions in this module Expand all Collapse all v1 v1.0.4 Sep 27, 2023 v1.0.2 Sep 22, 2023 v1.0.1 Sep 22, 2023 v1.0.0 Sep 23, 2023 Changes in this version + const AND + const Eq + const Gt + const Gte + const Like + const Lt + const Lte + const Neq + const OR + var ErrNotFound = gorm.ErrRecordNotFound + func SetMaxSize(max int) + type Column struct + Exp string + Logic string + Name string + Value interface{} + type Conditions struct + Columns []Column + func (c *Conditions) CheckValid() error + func (c *Conditions) ConvertToGorm() (string, []interface{}, error) + type Page struct + func DefaultPage(page int) *Page + func NewPage(page int, size int, columnNames string) *Page + func (p *Page) Offset() int + func (p *Page) Page() int + func (p *Page) Size() int + func (p *Page) Sort() string + type Params struct + Columns []Column + Page int + Size int + Sort string + func (p *Params) ConvertToGormConditions() (string, []interface{}, error) + func (p *Params) ConvertToPage() (order string, limit int, offset int)