Documentation ¶
Index ¶
- func Create(value interface{}) error
- func DeleteByID(model interface{}, id uint64) (count int64, err error)
- func DeleteByIDS(model interface{}, ids []uint64) (count int64, err error)
- func DeleteByModel(model interface{}) (count int64, err error)
- func DeleteByWhere(model, where interface{}) (count int64, err error)
- func Find(where interface{}, out interface{}, orders ...string) error
- func First(where interface{}, out interface{}) (notFound bool, err error)
- func FirstByID(out interface{}, id int) (notFound bool, err error)
- func GetPage(model, where interface{}, out interface{}, pageIndex, pageSize uint64, ...) error
- func PluckList(model, where interface{}, out interface{}, fieldName string) error
- func Save(value interface{}) error
- func Scan(model, where interface{}, out interface{}) (notFound bool, err error)
- func ScanList(model, where interface{}, out interface{}, orders ...string) error
- func Updates(where interface{}, value interface{}) error
- type PageWhereOrder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByIDS ¶
Delete
func GetPage ¶
func GetPage(model, where interface{}, out interface{}, pageIndex, pageSize uint64, totalCount *uint64, whereOrder ...PageWhereOrder) error
GetPage
Types ¶
type PageWhereOrder ¶
分页条件
Click to show internal directories.
Click to hide internal directories.