Documentation ¶
Index ¶
- type CursorResult
- type OrderByCol
- type PageResult
- type Paging
- type ParamPair
- type SqlCnd
- func (s *SqlCnd) Asc(column string) *SqlCnd
- func (s *SqlCnd) Build(db *gorm.DB) *gorm.DB
- func (s *SqlCnd) Count(db *gorm.DB, model interface{}) int
- func (s *SqlCnd) Desc(column string) *SqlCnd
- func (s *SqlCnd) Ending(column string, str string) *SqlCnd
- func (s *SqlCnd) Eq(column string, args ...interface{}) *SqlCnd
- func (s *SqlCnd) Find(db *gorm.DB, out interface{})
- func (s *SqlCnd) FindOne(db *gorm.DB, out interface{}) errors.WTError
- func (s *SqlCnd) Gt(column string, args ...interface{}) *SqlCnd
- func (s *SqlCnd) Gte(column string, args ...interface{}) *SqlCnd
- func (s *SqlCnd) In(column string, params interface{}) *SqlCnd
- func (s *SqlCnd) Like(column string, str string) *SqlCnd
- func (s *SqlCnd) Limit(limit int) *SqlCnd
- func (s *SqlCnd) Lt(column string, args ...interface{}) *SqlCnd
- func (s *SqlCnd) Lte(column string, args ...interface{}) *SqlCnd
- func (s *SqlCnd) NotEq(column string, args ...interface{}) *SqlCnd
- func (s *SqlCnd) Page(page, limit int) *SqlCnd
- func (s *SqlCnd) Starting(column string, str string) *SqlCnd
- func (s *SqlCnd) Where(query string, args ...interface{}) *SqlCnd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CursorResult ¶
type CursorResult struct { Results interface{} `json:"results"` // 数据 Cursor string `json:"cursor"` // 下一页 }
Cursor分页返回数据
type PageResult ¶
type PageResult struct { Page *Paging `json:"page"` // 分页信息 Results interface{} `json:"results"` // 数据 }
分页返回数据
type Paging ¶
type Paging struct { Page int `json:"page"` // 页码 Limit int `json:"limit"` // 每页条数 Total int `json:"total"` // 总数据条数 }
分页请求数据
Click to show internal directories.
Click to hide internal directories.