16 lines
514 B
C#
16 lines
514 B
C#
using Fengling.RiskControl.Application.Commands;
|
|
using FluentValidation;
|
|
|
|
namespace Fengling.RiskControl.Application.Validators;
|
|
|
|
public class EvaluateRiskCommandValidator : AbstractValidator<EvaluateRiskCommand>
|
|
{
|
|
public EvaluateRiskCommandValidator()
|
|
{
|
|
RuleFor(x => x.MemberId).GreaterThan(0);
|
|
RuleFor(x => x.EntityType).NotEmpty().MaximumLength(50);
|
|
RuleFor(x => x.EntityId).NotEmpty().MaximumLength(100);
|
|
RuleFor(x => x.ActionType).NotEmpty().MaximumLength(50);
|
|
}
|
|
}
|