using FluentValidation; using Kean.Domain.Stock.Models; using System.Collections.Generic; namespace Kean.Domain.Stock.Commands { /// /// 入库命令 /// public class ChangeStoragePropertyCommand : CommandValidator, ICommand { /// /// 验证项 /// protected override void Validation() { RuleFor(r => r.Serialno).NotEmpty().WithMessage("膜卷码不能为空"); RuleFor(r => r.Batch).NotEmpty().WithMessage("属性不能为空"); } /// /// /// public string RequestNo { get; set; } /// /// /// public string Serialno { get; set; } /// /// /// public string FreezenStatus { get; set; } /// /// /// public Batch Batch { get; set; } } }