Versions in this module Expand all Collapse all v1 v1.6.5 Mar 4, 2022 v1.6.4 Dec 24, 2020 v1.6.3 Sep 23, 2020 v1.6.2 Jul 21, 2020 v1.6.1 Jul 20, 2020 v1.6.0 Jun 29, 2020 Changes in this version + type BaseModel struct + func (m *BaseModel) GetSession() *xorm.Session + func (m *BaseModel) Init(opts ...Option) + func (m *BaseModel) PageList(query *PageQuery, items interface{}) (int64, error) + type Filters map[string]List + type List []interface + type Option func(o *Options) + func WithCtx(ctx context.Context) Option + func WithDefaultOrder(orders ...Order) Option + func WithDefaultPageSize(page, size int) Option + func WithSession(session *xorm.Session) Option + type Options struct + type Order map[string]int + type Orders []Order + type PageQuery struct + ExtraQuery QueryHandler + Filters Filters + Orders Orders + Page int + Q Q + Size int + type Q map[string][]string + type Query struct + ExtraQuery QueryHandler + Filters Filters + Orders Orders + Q Q + type QueryHandler func(session *xorm.Session)