Aggregate 在 DDD 的设计中,这是 Aggregate 的标准使用方式: 除此之外,BankAccount 这个 Aggregate 还定义有业务方法来对应各种业务错误,比如 deposit 和 withdraw: