Documentation ¶
Index ¶
- func Add(db *gorm.DB, cud ADDFunc) (uint, error)
- func Create(db *gorm.DB, cud CUDFunc) (uint, error)
- func CreateUuid(db *gorm.DB, cud CUDUUIDFunc) (string, error)
- func Delete(db *gorm.DB, id uint, cud CUDFunc) error
- func First(db *gorm.DB, rf ResponseFunc, scopes ...func(db *gorm.DB) *gorm.DB) error
- func Paginate(db *gorm.DB, prf PageResponseFunc, scopes ...func(db *gorm.DB) *gorm.DB) (int64, error)
- func Update(db *gorm.DB, id uint, cud CUDFunc) error
- func UpdatePw(db *gorm.DB, mobile string, cud CUDUUIDFunc) error
- type ADDFunc
- type CUDFunc
- type CUDUUIDFunc
- type PageResponseFunc
- type ResponseFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CUDFunc ¶
type CUDFunc interface { Create(db *gorm.DB) (uint, error) Update(db *gorm.DB, scopes ...func(db *gorm.DB) *gorm.DB) error Delete(db *gorm.DB, scopes ...func(db *gorm.DB) *gorm.DB) error }
CUDFunc 增改删接口
type CUDUUIDFunc ¶
type CUDUUIDFunc interface { CreateUuid(db *gorm.DB) (string, error) UpdatePw(db *gorm.DB, scopes ...func(db *gorm.DB) *gorm.DB) error }
CUDUUIDFunc 增改删接口
Click to show internal directories.
Click to hide internal directories.