mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-03 09:35:12 +00:00
32 lines
437 B
Go
32 lines
437 B
Go
![]() |
package project
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/eventstore/v2"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
AggregateType = "project"
|
||
|
AggregateVersion = "v1"
|
||
|
)
|
||
|
|
||
|
type Aggregate struct {
|
||
|
eventstore.Aggregate
|
||
|
}
|
||
|
|
||
|
func NewAggregate(
|
||
|
id,
|
||
|
resourceOwner string,
|
||
|
previousSequence uint64,
|
||
|
) *Aggregate {
|
||
|
|
||
|
return &Aggregate{
|
||
|
Aggregate: *eventstore.NewAggregate(
|
||
|
id,
|
||
|
AggregateType,
|
||
|
resourceOwner,
|
||
|
AggregateVersion,
|
||
|
previousSequence,
|
||
|
),
|
||
|
}
|
||
|
}
|