using FluentValidation; namespace Kean.Domain.Wcs.Commands { /// /// 同步输出命令 /// public class SyncStationCommand : CommandValidator, ICommand { /// /// 设备号 /// public string Device { get; set; } /// /// /// public string Isfull { get; set; } /// /// /// public string PreIsfull { get; set; } /// /// 验证项 /// protected override void Validation() { RuleFor(r => r.Device).NotEmpty().WithMessage("站台编码不允许空"); } } }