private void Handle(ShopCashTransferCreatedEvent evnt) { _id = evnt.AggregateRootId; _nunber = evnt.Number; _info = evnt.Info; _type = evnt.Type; _status = evnt.Status; _walletId = evnt.WalletId; }
private ShopCashTransferStatus _status; //状态 public ShopCashTransfer(Guid id, Guid walletId, string number, ShopCashTransferInfo info, ShopCashTransferType type, ShopCashTransferStatus status) : base(id) { id.CheckNotEmpty(nameof(id)); walletId.CheckNotEmpty(nameof(walletId)); info.CheckNotNull(nameof(info)); ApplyEvent(new ShopCashTransferCreatedEvent(walletId, number, info, type, status)); }