mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-25 18:55:27 -06:00
* fix: move eventstore pkgs * fix: move eventstore pkgs * fix: remove v2 view * fix: remove v2 view
19 lines
343 B
Go
19 lines
343 B
Go
package eventstore
|
|
|
|
import (
|
|
"context"
|
|
"github.com/caos/zitadel/internal/query"
|
|
|
|
"github.com/caos/zitadel/internal/iam/model"
|
|
)
|
|
|
|
type IAMRepository struct {
|
|
IAMID string
|
|
|
|
IAMV2QuerySide *query.QuerySide
|
|
}
|
|
|
|
func (repo *IAMRepository) GetIAM(ctx context.Context) (*model.IAM, error) {
|
|
return repo.IAMV2QuerySide.IAMByID(ctx, repo.IAMID)
|
|
}
|