forked from mirror/gorm
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
|
||
|
}
|