添加项目文件。
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Atomx.Common.Entities;
|
||||
using FluentValidation;
|
||||
|
||||
namespace Atomx.Admin.Client.Validators
|
||||
{
|
||||
public class MaterialBatchValidator : AbstractValidator<MaterialBatch>
|
||||
{
|
||||
public MaterialBatchValidator()
|
||||
{
|
||||
RuleFor(p => p.Price).NotEmpty().WithMessage("价格不能为空");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user