mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
710652ef24
* feat: project role remove * feat: search queries * feat: search queries * feat: cascade remove/change project role * fix: comment in project grant * fix: remove projecr grant * fix: only search usergrants of my org * fix: delete usergrants * fix: delete usergrants * fix: check if role exists on project grant * feat: bulk add project role * fix: tests * fix: update user grants on project update * fix: return roles * feat: add resourceowner name on project grants * fix: migration number * fix: tests * fix: generate protos * fix: some unnecessary code
21 lines
947 B
Go
21 lines
947 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
|
|
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
|
|
}
|