12 lines
273 B
C#
12 lines
273 B
C#
using FluentValidation;
|
|
|
|
namespace PnvPanel.Application.Admin.Roles;
|
|
|
|
public sealed class UpdateRoleCommandValidator : AbstractValidator<UpdateRoleCommand>
|
|
{
|
|
public UpdateRoleCommandValidator()
|
|
{
|
|
RuleFor(x => x.MaxConfigs).GreaterThanOrEqualTo(-1);
|
|
}
|
|
}
|