mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 11:58:02 +00:00
19 lines
342 B
Go
19 lines
342 B
Go
package member
|
|
|
|
import "github.com/caos/zitadel/internal/eventstore/v2"
|
|
|
|
type Aggregate struct {
|
|
eventstore.Aggregate
|
|
|
|
UserID string
|
|
Roles []string
|
|
}
|
|
|
|
func NewAggregate(aggregate *eventstore.Aggregate, userID string, roles ...string) *Aggregate {
|
|
return &Aggregate{
|
|
Aggregate: *aggregate,
|
|
Roles: roles,
|
|
UserID: userID,
|
|
}
|
|
}
|