mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 11:58:02 +00:00
1de574df42
* fix: project by id return projectview * fix: return always view model on query side * fix: return always view model on query side
21 lines
951 B
Go
21 lines
951 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
"github.com/caos/zitadel/internal/usergrant/model"
|
|
)
|
|
|
|
type UserGrantRepository interface {
|
|
UserGrantByID(ctx context.Context, grantID string) (*model.UserGrantView, 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
|
|
SearchUserGrants(ctx context.Context, request *model.UserGrantSearchRequest) (*model.UserGrantSearchResponse, error)
|
|
|
|
BulkAddUserGrant(ctx context.Context, grant ...*model.UserGrant) error
|
|
BulkChangeUserGrant(ctx context.Context, grant ...*model.UserGrant) error
|
|
BulkRemoveUserGrant(ctx context.Context, grantIDs ...string) error
|
|
}
|