|
@@ -12,7 +12,5 @@ public class IndustryValidator : AbstractValidator<AddIndustryDto>
|
|
public IndustryValidator()
|
|
public IndustryValidator()
|
|
{
|
|
{
|
|
RuleFor(m => m.Name).NotEmpty().WithMessage("行业名称不能为空");
|
|
RuleFor(m => m.Name).NotEmpty().WithMessage("行业名称不能为空");
|
|
- RuleFor(m => m.CitizenReadPackAmount).NotEqual(0).WithMessage("市民红包不能为空");
|
|
|
|
- RuleFor(m => m.GuiderReadPackAmount).NotEqual(0).WithMessage("网格员红包不能为空");
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|