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#

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