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.

62 lines
1.3 KiB
C#

11 months ago
using DS.Module.Core;
11 months ago
using FluentValidation;
11 months ago
namespace DS.WMS.Core.Flow.Dtos;
/// <summary>
/// 流程模板请求实体
/// </summary>
public class FlowTemplateReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 模板名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 模块Id
/// </summary>
public long PermissionId { get; set; }
/// <summary>
///中文视图名;设计打印方案时,提供中文快捷按钮的视图来源
/// </summary>
public string ColumnView { get; set; }
/// <summary>
/// 流程内容
/// </summary>
public string Content { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? OrderNo { get; set; } = 100;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; }
11 months ago
}
/// <summary>
/// 验证
/// </summary>
public class FlowTemplateReqValidator : AbstractValidator<FlowTemplateReq>
{
/// <summary>
/// 构造函数
/// </summary>
public FlowTemplateReqValidator()
{
this.RuleFor(o => o.Name)
.NotEmpty().WithMessage("模板名称");
this.RuleFor(o => o.PermissionId)
.NotEmpty().WithMessage("关联模块");
}
11 months ago
}