mirror of https://github.com/go-gorm/gorm.git
12 lines
191 B
Go
12 lines
191 B
Go
|
package callbacks
|
||
|
|
||
|
import "github.com/jinzhu/gorm"
|
||
|
|
||
|
type beforeSaveInterface interface {
|
||
|
BeforeSave(*gorm.DB) error
|
||
|
}
|
||
|
|
||
|
type beforeCreateInterface interface {
|
||
|
BeforeCreate(*gorm.DB) error
|
||
|
}
|