添加项目文件。
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Atomx.Admin.Client.Models;
|
||||
using FluentValidation;
|
||||
|
||||
namespace Atomx.Admin.Client.Validators
|
||||
{
|
||||
public class CurrencyModelValidator : AbstractValidator<CurrencyModel>
|
||||
{
|
||||
public CurrencyModelValidator()
|
||||
{
|
||||
RuleFor(p => p.Name).NotEmpty().WithMessage("请填写货币名称");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user