Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFilters ¶
apply query builder inner filters that implement GORMFilter
Types ¶
type DefaultPageFilter ¶
func (*DefaultPageFilter) GetLimit ¶
func (b *DefaultPageFilter) GetLimit() int
func (*DefaultPageFilter) GetOffset ¶
func (b *DefaultPageFilter) GetOffset() int
func (*DefaultPageFilter) SetPageFilter ¶
func (b *DefaultPageFilter) SetPageFilter(page int, pageSize int)
type IdQueryFilter ¶
type IdQueryFilter struct {
Ids []interface{}
}
Ids filter
func (IdQueryFilter) ApplyQuery ¶
func (f IdQueryFilter) ApplyQuery(db *gorm.DB) *gorm.DB
func (*IdQueryFilter) InId ¶
func (f *IdQueryFilter) InId(ids ...interface{})
type ModelsReader ¶
read models from database
type OrderQueryFilter ¶
type OrderQueryFilter struct {
Order string
}
order filter
func (OrderQueryFilter) ApplyQuery ¶
func (f OrderQueryFilter) ApplyQuery(db *gorm.DB) *gorm.DB
func (*OrderQueryFilter) SetOrderFilter ¶
func (f *OrderQueryFilter) SetOrderFilter(order string)
Click to show internal directories.
Click to hide internal directories.