You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
935 B
39 lines
935 B
using FluentValidation;
|
|
|
|
namespace Kean.Domain.Wcs.Commands
|
|
{
|
|
/// <summary>
|
|
/// 同步输出命令
|
|
/// </summary>
|
|
public class SyncOutputCommand : CommandValidator<SyncOutputCommand>, ICommand
|
|
{
|
|
/// <summary>
|
|
/// 标识
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 任务号
|
|
/// </summary>
|
|
public int Task { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public int State { get; set; }
|
|
|
|
/// <summary>
|
|
/// 消息
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
|
|
/// <summary>
|
|
/// 验证项
|
|
/// </summary>
|
|
protected override void Validation()
|
|
{
|
|
RuleFor(r => r.Id).NotEmpty().WithMessage("标识不允许空");
|
|
RuleFor(r => r.State).NotEmpty().WithMessage("状态不允许空");
|
|
}
|
|
}
|
|
}
|