15 lines
406 B
C#
15 lines
406 B
C#
using Atomx.Admin.Client.Models;
|
|
using FluentValidation;
|
|
using Microsoft.Extensions.Localization;
|
|
|
|
namespace Atomx.Admin.Client.Validators
|
|
{
|
|
public class AreaModelValidator : AbstractValidator<AreaModel>
|
|
{
|
|
public AreaModelValidator(IStringLocalizer<AreaModelValidator> localizer)
|
|
{
|
|
RuleFor(p => p.Name).NotEmpty().WithMessage("请填名称信息");
|
|
}
|
|
}
|
|
}
|