mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-04 09:58:49 +00:00
try with writemodel
This commit is contained in:
@@ -9,8 +9,10 @@ type Aggregate struct {
|
||||
Roles []string
|
||||
}
|
||||
|
||||
func NewMemberAggregate(userID string) *ReadModel {
|
||||
return &ReadModel{
|
||||
ReadModel: *eventstore.NewReadModel(),
|
||||
func NewAggregate(aggregate *eventstore.Aggregate, userID string, roles ...string) *Aggregate {
|
||||
return &Aggregate{
|
||||
Aggregate: *aggregate,
|
||||
Roles: roles,
|
||||
UserID: userID,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user