mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +00:00
19 lines
393 B
Go
19 lines
393 B
Go
|
package target
|
||
|
|
||
|
import "github.com/zitadel/zitadel/internal/eventstore"
|
||
|
|
||
|
const (
|
||
|
AggregateType = "target"
|
||
|
AggregateVersion = "v1"
|
||
|
)
|
||
|
|
||
|
func NewAggregate(aggrID, instanceID string) *eventstore.Aggregate {
|
||
|
return &eventstore.Aggregate{
|
||
|
ID: aggrID,
|
||
|
Type: AggregateType,
|
||
|
ResourceOwner: instanceID,
|
||
|
InstanceID: instanceID,
|
||
|
Version: AggregateVersion,
|
||
|
}
|
||
|
}
|