diff --git a/auth/group.go b/auth/group.go index 2cc77e6..0abd336 100644 --- a/auth/group.go +++ b/auth/group.go @@ -40,3 +40,9 @@ var BeforeGroupUpdate func(*Group) error = func(g *Group) error { return nil } func (grp *Group) BeforeUpdate(tx *gorm.DB) (err error) { 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) +}