gorm/callbacks/interface.go

12 lines
191 B
Go
Raw Normal View History

2020-02-02 03:35:01 +03:00
package callbacks
import "github.com/jinzhu/gorm"
type beforeSaveInterface interface {
BeforeSave(*gorm.DB) error
}
type beforeCreateInterface interface {
BeforeCreate(*gorm.DB) error
}