You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
667 B
40 lines
667 B
3 years ago
|
package callbacks
|
||
|
|
||
|
import "gorm.io/gorm"
|
||
|
|
||
|
type BeforeCreateInterface interface {
|
||
|
BeforeCreate(*gorm.DB) error
|
||
|
}
|
||
|
|
||
|
type AfterCreateInterface interface {
|
||
|
AfterCreate(*gorm.DB) error
|
||
|
}
|
||
|
|
||
|
type BeforeUpdateInterface interface {
|
||
|
BeforeUpdate(*gorm.DB) error
|
||
|
}
|
||
|
|
||
|
type AfterUpdateInterface interface {
|
||
|
AfterUpdate(*gorm.DB) error
|
||
|
}
|
||
|
|
||
|
type BeforeSaveInterface interface {
|
||
|
BeforeSave(*gorm.DB) error
|
||
|
}
|
||
|
|
||
|
type AfterSaveInterface interface {
|
||
|
AfterSave(*gorm.DB) error
|
||
|
}
|
||
|
|
||
|
type BeforeDeleteInterface interface {
|
||
|
BeforeDelete(*gorm.DB) error
|
||
|
}
|
||
|
|
||
|
type AfterDeleteInterface interface {
|
||
|
AfterDelete(*gorm.DB) error
|
||
|
}
|
||
|
|
||
|
type AfterFindInterface interface {
|
||
|
AfterFind(*gorm.DB) error
|
||
|
}
|