Documentation ¶
Index ¶
- Constants
- type BaseModel
- func (bm *BaseModel) AfterFind(scope *gorm.DB) (err error)
- func (bm *BaseModel) BeforeCreate(scope *gorm.DB) (err error)
- func (bm *BaseModel) BeforeSave(scope *gorm.DB) (err error)
- func (bm *BaseModel) BeforeUpdate(scope *gorm.DB) (err error)
- func (bm *BaseModel) SetTableName(tableName string) string
- type Filter
- type Model
- type Modeller
- type Pagination
- func (p *Pagination) Count() int
- func (p *Pagination) CurrentPage() int
- func (p *Pagination) FirstItem() interface{}
- func (p *Pagination) ItemArr() interface{}
- func (p *Pagination) LastItem() interface{}
- func (p *Pagination) LastPage() int
- func (p *Pagination) PerPage() int
- func (p *Pagination) Total() int64
- type Sort
Constants ¶
View Source
const ( ASC sortDirection = iota DESC )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct {
// contains filtered or unexported fields
}
func (*Pagination) Count ¶
func (p *Pagination) Count() int
func (*Pagination) CurrentPage ¶
func (p *Pagination) CurrentPage() int
func (*Pagination) FirstItem ¶
func (p *Pagination) FirstItem() interface{}
func (*Pagination) ItemArr ¶
func (p *Pagination) ItemArr() interface{}
func (*Pagination) LastItem ¶
func (p *Pagination) LastItem() interface{}
func (*Pagination) LastPage ¶
func (p *Pagination) LastPage() int
func (*Pagination) PerPage ¶
func (p *Pagination) PerPage() int
func (*Pagination) Total ¶
func (p *Pagination) Total() int64
Click to show internal directories.
Click to hide internal directories.