using FluentValidation; using System; using System.Collections.Generic; namespace Kean.Domain.Task.Commands { /// /// 创建申请出库命令 /// public class ReportCommand : CommandValidator, ICommand { /// /// 库房 /// public int Warehouse { get; set; } /// /// 托盘条码 /// public string Barcode { get; set; } /// /// 目标位置 /// public object Destination { get; set; } /// /// 优先级 /// public int? Priority { get; set; } /// /// 操作者 /// public int Operator { get; set; } /// /// 是否手动 /// public bool Manual { get; set; } /// /// 标签 /// public string Tag { get; set; } /// /// 前续连接 /// public int? Previous { get; set; } /// /// 物料 /// public IEnumerable Materials { get; set; } /// /// 时间戳 /// internal DateTime? Timestamp { get; set; } /// /// 验证项 /// protected override void Validation() { //RuleFor(r => r.Destination).NotEmpty().WithMessage("目标位置不允许空"); } /// /// 标识 /// [Output] public int Id { get; private set; } /// /// 事务 /// public string Transaction { get; set; } } }