You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.0 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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