zitadel/internal/repository/limits/aggregate.go

27 lines
480 B
Go
Raw Normal View History

package limits
import (
"github.com/zitadel/zitadel/internal/eventstore"
)
const (
AggregateType = "limits"
AggregateVersion = "v1"
)
type Aggregate struct {
eventstore.Aggregate
}
func NewAggregate(id, instanceId, resourceOwner string) *Aggregate {
return &Aggregate{
Aggregate: eventstore.Aggregate{
Type: AggregateType,
Version: AggregateVersion,
ID: id,
InstanceID: instanceId,
ResourceOwner: resourceOwner,
},
}
}