Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateAggregate ¶
func CreateOrUpdateAggregate(isCreateAction bool, store es.EventStore, id domain.AggregateIdentity, state domain.AggregateState, agg domain.Aggregate, action func(agg domain.Aggregate) error)
创建或更新聚合,并持久化到事件存储中 isCreateAction:是否为创建操作 store:事件存储 id:聚合标识 state:聚合状态 agg:聚合 action:创建或更新聚合的操作
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.