update:添加领域事件
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Base62;
|
||||
using Domain.Events;
|
||||
using Domain.SeedWork;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -40,6 +41,8 @@ namespace Domain.AggregateModel.LinkAggregate
|
||||
AppId = appId;
|
||||
Time = DateTime.Now;
|
||||
CalculateShortCode();
|
||||
|
||||
AddDomainEvent(new LinkCreatedDomainEvent(this));
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据值计算短链字段
|
||||
|
||||
Reference in New Issue
Block a user