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.

63 lines
1.5 KiB
C#

using FluentValidation;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sys.Dtos
{
/// <summary>
/// 打印模块请求实体
/// </summary>
public class SysPrintModuleReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 打印模块名称
/// </summary>
public string ModuleName { get; set; }
/// <summary>
/// 打印模块唯一编码
/// </summary>
public string ModuleCode { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
///是否可用
/// </summary>
[Description("是否可用")]
public bool Disable { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; }
}
/// <summary>
/// 验证
/// </summary>
public class SysPrintModuleReqValidator : AbstractValidator<SysPrintModuleReq>
{
/// <summary>
/// 构造函数
/// </summary>
public SysPrintModuleReqValidator()
{
this.RuleFor(o => o.ModuleName)
.NotEmpty().WithName("打印模块名称");
this.RuleFor(o => o.ModuleCode)
.NotEmpty().WithName("打印模块唯一编码");
}
}
}