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.
53 lines
1.1 KiB
53 lines
1.1 KiB
3 months ago
|
using FluentValidation;
|
||
|
using System;
|
||
|
|
||
|
namespace Kean.Domain.Task.Commands
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 任务完成命令
|
||
|
/// </summary>
|
||
|
public class CompleteCommand : CommandValidator<CompleteCommand>, ICommand
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 标识
|
||
|
/// </summary>
|
||
|
public int Id { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 人工标志
|
||
|
/// </summary>
|
||
|
public int ManualFlg
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 操作者
|
||
|
/// </summary>
|
||
|
public int Operator
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
public string IsCancelAgv
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
public string IsCancelHiwms
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 验证项
|
||
|
/// </summary>
|
||
|
protected override void Validation()
|
||
|
{
|
||
|
RuleFor(r => r.Id).NotEmpty().WithMessage("标识不允许空");
|
||
|
}
|
||
|
}
|
||
|
}
|