添加命令数据验证和其他杂项修改
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using MediatR;
|
||||
using Domain.AggregateModel.LinkAggregate;
|
||||
using MediatR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -7,8 +8,14 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace QRCodeService.Application.Commands
|
||||
{
|
||||
public class CreateLinkCommand : IRequest<bool>
|
||||
public class CreateLinkCommand : IRequest<Link>
|
||||
{
|
||||
public int AppId { get; set; }
|
||||
public string SuffixUrl { get; set; }
|
||||
public CreateLinkCommand(string suffixUrl, int appId)
|
||||
{
|
||||
SuffixUrl = suffixUrl;
|
||||
AppId = appId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user