policies implemented

This commit is contained in:
adlerhurst
2020-11-06 22:09:19 +01:00
parent f7f810caa5
commit 57fc3ddd16
22 changed files with 667 additions and 87 deletions

View File

@@ -18,9 +18,8 @@ import (
// ------------------------------------------------------------
type UserAggregate struct {
eventstore.BaseEvent
eventstore.Aggregate
FirstName string
}
@@ -54,7 +53,7 @@ func NewUserAggregate(id string) *UserAggregate {
}
}
func (rm *UserAggregate) AppendEvents(events ...eventstore.Event) *UserAggregate {
func (rm *UserAggregate) AppendEvents(events ...eventstore.EventReader) *UserAggregate {
rm.Aggregate.AppendEvents(events...)
return rm
}