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
{
///
/// 打印模块请求实体
///
public class SysPrintModuleReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 打印模块名称
///
public string ModuleName { get; set; }
///
/// 打印模块唯一编码
///
public string ModuleCode { get; set; }
///
/// 排序号
///
public int SortNo { get; set; }
///
///是否可用
///
[Description("是否可用")]
public bool Disable { get; set; }
///
/// 备注
///
public string Note { get; set; }
}
///
/// 验证
///
public class SysPrintModuleReqValidator : AbstractValidator
{
///
/// 构造函数
///
public SysPrintModuleReqValidator()
{
this.RuleFor(o => o.ModuleName)
.NotEmpty().WithName("打印模块名称");
this.RuleFor(o => o.ModuleCode)
.NotEmpty().WithName("打印模块唯一编码");
}
}
}