公共 API 参考(@saas/contracts + @core/saas-kit + apps/api 对外接口)
    Preparing search index...

    框架无关的领域事件基类(ES 钩子 #3)。

    Concrete events live next to their aggregate and carry the payload as a typed object. Must never import Nest/ORM packages.

    Type Parameters

    • TPayload extends object = object

    Hierarchy (View Summary)

    Index
    aggregateId: string

    事件所属聚合根 id。

    aggregateType: string

    事件所属聚合类型名。

    causationId?: string

    因果链:直接触发本事件的事件 id。

    correlationId?: string

    关联 id:贯穿一次请求链。

    eventId: string

    事件唯一 id。

    eventType: string

    事件类型名(稳定契约)。

    eventVersion: number

    事件 schema 版本。

    occurredAt: Date

    事件发生时间。

    payload: TPayload

    事件负载。