16 lines
547 B
C#
16 lines
547 B
C#
using FluentValidation;
|
|
using SJZY.Track.Application.Contract.Dtos.Forewarning;
|
|
using SJZY.Track.Domain.Dtos.Forewarning;
|
|
|
|
namespace SJZY.Track.Application.Validations.Forewarning;
|
|
|
|
public class CreateRuleFactorValidation : AbstractValidator<CreateWarningInput>
|
|
{
|
|
public CreateRuleFactorValidation()
|
|
{
|
|
RuleFor(x => x.WarningFactors).NotNull().WithMessage("因素列表不能为空");
|
|
RuleFor(x => x.TrackStatusSpans).NotNull().WithMessage("轨迹状态列表不能为空");
|
|
|
|
// todo: more validation
|
|
}
|
|
} |