mirror of
https://github.com/zitadel/zitadel
synced 2024-11-22 18:44:40 +00:00
15 lines
598 B
Go
15 lines
598 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
"github.com/caos/zitadel/internal/usergrant/model"
|
|
)
|
|
|
|
type UserGrantRepository interface {
|
|
SearchMyUserGrants(ctx context.Context, request *model.UserGrantSearchRequest) (*model.UserGrantSearchResponse, error)
|
|
SearchMyProjectOrgs(ctx context.Context, request *model.UserGrantSearchRequest) (*model.ProjectOrgSearchResponse, error)
|
|
SearchMyZitadelPermissions(ctx context.Context) ([]string, error)
|
|
SearchMyProjectPermissions(ctx context.Context) ([]string, error)
|
|
UserGrantsByProjectAndUserID(projectID, userID string) ([]*model.UserGrantView, error)
|
|
}
|