mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-15 06:51:18 +00:00
start idp config
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package iam
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/caos/zitadel/internal/eventstore/v2"
|
||||
)
|
||||
|
||||
@@ -38,3 +40,18 @@ func AggregateFromReadModel(rm *ReadModel) *Aggregate {
|
||||
SetUpStarted: rm.SetUpStarted,
|
||||
}
|
||||
}
|
||||
|
||||
func (a *Aggregate) PushMemberAdded(ctx context.Context, userID string, roles ...string) *Aggregate {
|
||||
a.Aggregate = *a.PushEvents(NewMemberAddedEvent(ctx, userID, roles...))
|
||||
return a
|
||||
}
|
||||
|
||||
func (a *Aggregate) PushMemberChanged(ctx context.Context, userID string, roles ...string) *Aggregate {
|
||||
a.Aggregate = *a.PushEvents(NewMemberChangedEvent(ctx, userID, roles...))
|
||||
return a
|
||||
}
|
||||
|
||||
func (a *Aggregate) PushMemberRemoved(ctx context.Context, userID string) *Aggregate {
|
||||
a.Aggregate = *a.PushEvents(NewMemberRemovedEvent(ctx, userID))
|
||||
return a
|
||||
}
|
||||
|
Reference in New Issue
Block a user