Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pagination ¶
func Pagination(dbConn *gorm.DB, pagingOptionCollection *pagination.PagingOptionCollection) *gorm.DB
Pagination pagination
func WhereConditions ¶
func WhereConditions(dbConn *gorm.DB, whereConditions []*WhereCondition) *gorm.DB
WhereConditions where conditions
Types ¶
type User ¶
type User struct { Id int64 `gorm:"PRIMARY_KEY;COLUMN:id"` // id Name string `gorm:"COLUMN:name"` // name Age int64 `gorm:"COLUMN:age"` // age }
User user model
func (*User) List ¶
func (m *User) List(in *pb.UserListReq, pagingOptionCollection *pagination.PagingOptionCollection) ([]*User, int64, error)
List user model list
func (*User) WhereConditions ¶
WhereConditions orm where
type WhereCondition ¶
type WhereCondition struct {
pagination.PagingWhere
}
WhereCondition where condition
Click to show internal directories.
Click to hide internal directories.