Versions in this module Expand all Collapse all v0 v0.1.6 Nov 20, 2025 v0.1.5 Nov 20, 2025 v0.1.4 Nov 18, 2025 v0.1.3 Nov 18, 2025 v0.1.2 Nov 17, 2025 v0.1.1 Nov 17, 2025 v0.1.0 Nov 14, 2025 Changes in this version + const QP_EQ + const QP_GT + const QP_GTE + const QP_LK + const QP_LT + const QP_LTE + const QP_NEQ + const QP_ORGT + const QP_ORLK + const QP_ORLT + const QP_PA + const QP_PD + type BaseInfoFilter struct + AllRegex bool + DBField string + ExactMatch bool + Values []interface{} + func NewBaseInfoFilter(field string, values []interface{}) *BaseInfoFilter + type Filter struct + Field string + Logic string + Operator Operator + Value interface{} + func NewFilter(field string, operator Operator, value interface{}) *Filter + type FilterGroup struct + Filters []*Filter + Groups []*FilterGroup + Logic string + type FindOption struct + BusinessId string + CacheTTL time.Duration + ExcludeField bool + ExcludeFields []string + IncludeFields []string + NoCache bool + ShopId string + TablePrefix string + func NewFindOption() *FindOption + func (fo *FindOption) WithBusinessId(id string) *FindOption + func (fo *FindOption) WithCacheTTL(ttl time.Duration) *FindOption + func (fo *FindOption) WithExcludeFields(fields ...string) *FindOption + func (fo *FindOption) WithIncludeFields(fields ...string) *FindOption + func (fo *FindOption) WithNoCache() *FindOption + func (fo *FindOption) WithShopId(id string) *FindOption + func (fo *FindOption) WithTablePrefix(prefix string) *FindOption + type Operator string + const OP_BETWEEN + const OP_EQ + const OP_FIND_IN_SET + const OP_GT + const OP_GTE + const OP_IN + const OP_IS_NULL + const OP_LIKE + const OP_LT + const OP_LTE + const OP_NEQ + type OrderBy struct + Field string + Order string + func NewOrderBy(field string, order string) *OrderBy + type PageBean struct + Page int + PageSize int + Pages int + Rows interface{} + Total int64 + func NewPageBean(page int, pageSize int, total int64, rows interface{}) *PageBean + type Param struct + Distinct bool + FilterGroups []*FilterGroup + Filters []*Filter + FindInSets map[string][]string + HavingClauses []string + Limit int + Offset int + Orders []*OrderBy + Page int + PageSize int + SelectFields []string + TimeRanges map[string][2]interface{} + func NewParam() *Param + func (p *Param) AddEQ(field string, value interface{}) *Param + func (p *Param) AddEndsWith(field string, value string) *Param + func (p *Param) AddFilter(field string, operator Operator, value interface{}) *Param + func (p *Param) AddFindInSet(field string, values ...string) *Param + func (p *Param) AddGT(field string, value interface{}) *Param + func (p *Param) AddGTE(field string, value interface{}) *Param + func (p *Param) AddHaving(clause string) *Param + func (p *Param) AddIn(field string, values ...interface{}) *Param + func (p *Param) AddLT(field string, value interface{}) *Param + func (p *Param) AddLTE(field string, value interface{}) *Param + func (p *Param) AddLike(field string, value string) *Param + func (p *Param) AddNEQ(field string, value interface{}) *Param + func (p *Param) AddOrEQ(field string, value interface{}) *Param + func (p *Param) AddOrFilter(field string, operator Operator, value interface{}) *Param + func (p *Param) AddOrGT(field string, value interface{}) *Param + func (p *Param) AddOrGTE(field string, value interface{}) *Param + func (p *Param) AddOrIn(field string, values ...interface{}) *Param + func (p *Param) AddOrLT(field string, value interface{}) *Param + func (p *Param) AddOrLTE(field string, value interface{}) *Param + func (p *Param) AddOrLike(field string, value string) *Param + func (p *Param) AddOrNEQ(field string, value interface{}) *Param + func (p *Param) AddOrder(field string, order string) *Param + func (p *Param) AddOrderAsc(field string) *Param + func (p *Param) AddOrderDesc(field string) *Param + func (p *Param) AddStartsWith(field string, value string) *Param + func (p *Param) AddTimeRange(field string, startTime, endTime interface{}) *Param + func (p *Param) BuildWhereClause() (string, []interface{}) + func (p *Param) SetDistinct(distinct bool) *Param + func (p *Param) SetPage(page int, pageSize int) *Param + func (p *Param) SetSelectFields(fields ...string) *Param