添加项目文件。
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Atomx.Admin.Client.Models;
|
||||
using FluentValidation;
|
||||
|
||||
namespace Atomx.Admin.Client.Validators
|
||||
{
|
||||
public class RoleModelValidator : AbstractValidator<RoleModel>
|
||||
{
|
||||
public RoleModelValidator()
|
||||
{
|
||||
RuleFor(p => p.Name).NotEmpty().WithMessage("角色名称不能为空");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user