Add initial implementation of grants
This commit is contained in:
parent
b8f1281f78
commit
69b6579de7
15 changed files with 308 additions and 73 deletions
15
internal/dis/component/userdelete.go
Normal file
15
internal/dis/component/userdelete.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package component
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
)
|
||||
|
||||
// UserDeleteHook represents a hook that is called just before a user is deleted
|
||||
type UserDeleteHook interface {
|
||||
Component
|
||||
|
||||
// OnUserDelete is called right before a user is deleted
|
||||
OnUserDelete(ctx context.Context, user *models.User) error
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue