update:添加中转等待界面
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using FluentValidation;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using QRCodeService.Application.Commands;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace QRCodeService.Application.Validations
|
||||
{
|
||||
public class CreateLinkCommandValidator: AbstractValidator<CreateLinkCommand>
|
||||
{
|
||||
public CreateLinkCommandValidator(ILogger<CreateLinkCommandValidator> logger)
|
||||
{
|
||||
RuleFor(link=>link.SuffixUrl).NotEmpty().WithMessage("No SuffixUrl found");
|
||||
|
||||
logger.LogTrace("----- INSTANCE CREATED - {ClassName}", GetType().Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user