Beispiel #1
0
 private void Handle(StoreCreatedEvent evnt)
 {
     _info               = evnt.Info;
     _subjectInfo        = evnt.SubjectInfo;
     _returnAddressInfo  = null;
     _userId             = evnt.UserId;
     _sectionId          = Guid.Empty;
     _orderIds           = new HashSet <Guid>();
     _isLocked           = false;
     _storeStatisticInfo = new StoreStatisticInfo(
         0,
         0,
         0,
         0,
         0,
         DateTime.Now);
     _status = StoreStatus.Apply;
     _type   = StoreType.ThirdParty;//默认为第三方店铺
 }
Beispiel #2
0
 public void ReturnAddressUpdate(ReturnAddressInfo info)
 {
     info.CheckNotNull(nameof(info));
     ApplyEvent(new StoreReturnAddressUpdatedEvent(info));
 }
Beispiel #3
0
 private void Handle(StoreReturnAddressUpdatedEvent evnt)
 {
     _returnAddressInfo = evnt.Info;
 }