using FluentValidation; using Kean.Domain.Stock.Models; using System.Collections.Generic; namespace Kean.Domain.Stock.Commands { /// <summary> /// 入库命令 /// </summary> public class SendAGVCommand : CommandValidator<SendAGVCommand>, ICommand { /// <summary> /// 托盘条码 /// </summary> public string Barcode { get; set; } /// <summary> /// 目标位置 /// </summary> public int Destination { get; set; } /// <summary> /// 库存行 /// </summary> public IEnumerable<StockLine> Lines { get; set; } /// <summary> /// 标签 /// </summary> public string Tag { get; set; } /// <summary> /// 验证项 /// </summary> protected override void Validation() { RuleFor(r => r.Barcode).NotEmpty().WithMessage("托盘条码不允许空"); } } }