mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
16 lines
613 B
Go
16 lines
613 B
Go
|
package repository
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/caos/zitadel/internal/usergrant/model"
|
||
|
)
|
||
|
|
||
|
type UserGrantRepository interface {
|
||
|
UserGrantByID(ctx context.Context, grantID string) (*model.UserGrant, error)
|
||
|
AddUserGrant(ctx context.Context, grant *model.UserGrant) (*model.UserGrant, error)
|
||
|
ChangeUserGrant(ctx context.Context, grant *model.UserGrant) (*model.UserGrant, error)
|
||
|
DeactivateUserGrant(ctx context.Context, grantID string) (*model.UserGrant, error)
|
||
|
ReactivateUserGrant(ctx context.Context, grantID string) (*model.UserGrant, error)
|
||
|
RemoveUserGrant(ctx context.Context, grantID string) error
|
||
|
}
|