gorm/callbacks/interface.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
}