14 lines
378 B
C#
14 lines
378 B
C#
using FluentValidation;
|
||
using SJZY.Track.Application.Dtos.Demo;
|
||
|
||
namespace SJZY.Track.Application.Validations.Demo
|
||
{
|
||
public class UserRoleInputValidation : AbstractValidator<UserRoleInput>, IValidationEnabled
|
||
{
|
||
public UserRoleInputValidation()
|
||
{
|
||
RuleFor(m => m.Id).GreaterThan(0).WithMessage("角色ID必须大于0!");
|
||
}
|
||
}
|
||
}
|