Add initial implementation of grants

This commit is contained in:
Tom Wiesing 2023-01-02 15:12:06 +01:00
parent b8f1281f78
commit 69b6579de7
No known key found for this signature in database
15 changed files with 308 additions and 73 deletions

View 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
}