添加命令数据验证和其他杂项修改
This commit is contained in:
21
Domain/Events/LinkCreatedDomainEvent.cs
Normal file
21
Domain/Events/LinkCreatedDomainEvent.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Domain.AggregateModel.LinkAggregate;
|
||||
using MediatR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Domain.Events
|
||||
{
|
||||
//短链接生成通知
|
||||
public class LinkCreatedDomainEvent:INotification
|
||||
{
|
||||
public Link Link { get; set; }
|
||||
|
||||
public LinkCreatedDomainEvent(Link link)
|
||||
{
|
||||
Link = link;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user