master
Evan Chen 2021-12-19 21:33:11 +08:00
parent 402d7e93b1
commit f10719c212
1 changed files with 6 additions and 0 deletions

View File

@ -40,3 +40,9 @@ var BeforeGroupUpdate func(*Group) error = func(g *Group) error { return nil }
func (grp *Group) BeforeUpdate(tx *gorm.DB) (err error) { func (grp *Group) BeforeUpdate(tx *gorm.DB) (err error) {
return BeforeGroupUpdate(grp) return BeforeGroupUpdate(grp)
} }
var BeforeGroupDelete func(*Group) error = func(g *Group) error { return nil }
func (grp *Group) BeforeDelete(tx *gorm.DB) (err error) {
return BeforeGroupDelete(grp)
}