using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Flow.Dtos;
///
/// 工作流实例请求实体
///
public class FlowInstanceReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 业务Id
///
public long BusinessId { get; set; }
///
/// 模板Id
///
public long? TemplateId { get; set; }
///
/// 客户自定义名称
///
public string CustomName { get; set; }
///
/// 模块Id
///
public long PermissionId { get; set; }
///
/// 当前节点ID
///
public string ActivityId { get; set; }
///
/// 当前节点类型(0会签节点)
///
public int? ActivityType { get; set; }
///
/// 当前节点名称
///
public string ActivityName { get; set; }
///
/// 前一个ID
///
public string PreviousId { get; set; }
///
/// 执行人
///
public string MakerList { get; set; }
///
/// 工作流状态
///
public FlowStatusEnum FlowStatus { get; set; }
///
/// 类型
///
public AuditType? AuditType { get; set; }
///
/// 中文视图名;设计方案时,提供中文字段的视图来源
///
public string ColumnView { get; set; }
///
/// 流程内容
///
public string Content { get; set; }
///
/// 备注
///
public string? Note { get; set; }
}
///
/// 验证
///
public class FlowInstanceReqValidator : AbstractValidator
{
///
/// 构造函数
///
public FlowInstanceReqValidator()
{
this.RuleFor(o => o.CustomName)
.NotEmpty().WithMessage("客户模板名称");
}
}