update:添加中转等待界面

This commit is contained in:
2021-02-23 18:08:06 +08:00
parent 43de7445bd
commit cd23716d1b
8 changed files with 55 additions and 18 deletions

View File

@@ -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);
}
}
}