16 lines
371 B
C#
16 lines
371 B
C#
using FluentValidation;
|
|
using SJZY.Track.Application.Dtos.Demo;
|
|
|
|
|
|
namespace SJZY.Track.Application.Validations.Demo
|
|
{
|
|
public class UserInfoInputValidation : AbstractValidator<UserInfoInput>, IValidationEnabled
|
|
{
|
|
public UserInfoInputValidation()
|
|
{
|
|
RuleFor(x => x.QQ).NotNull().WithMessage("QQ号码不能为空");
|
|
}
|
|
|
|
}
|
|
}
|