add hook
parent
7951de705e
commit
402d7e93b1
|
@ -34,3 +34,9 @@ func (grp *Group) BeforeSave(tx *gorm.DB) (err error) {
|
||||||
}
|
}
|
||||||
return BeforeGroupSave(grp)
|
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)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue