新增国家、州省地区的API
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
using Atomx.Common.Entities;
|
||||
using FluentValidation;
|
||||
using Microsoft.Extensions.Localization;
|
||||
|
||||
namespace Atomx.Admin.Client.Validators
|
||||
{
|
||||
public class RoleValidator : AbstractValidator<Role>
|
||||
{
|
||||
public RoleValidator()
|
||||
public RoleValidator(IStringLocalizer<RoleValidator> localizer)
|
||||
{
|
||||
RuleFor(p => p.Name).NotEmpty().WithMessage("角色名称不能为空");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user