master
Evan Chen 2021-12-19 21:32:09 +08:00
parent 7951de705e
commit 402d7e93b1
1 changed files with 6 additions and 0 deletions

View File

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