using DS.WMS.Core.Op.EDI;
using DS.WMS.Core.Op.Entity;
using FluentValidation;
namespace DS.WMS.Core.Info.Dtos;
///
/// 根据代码获取客户下拉及业务信息请求实体
///
public class ClientSelectInfoReq
{
///
/// 业务类型 1 海运出口 2 海运进口
///
public BusinessType BusinessType { get; set; }
///
/// 业务Id
///
public long BusinessId { get; set; }
///
/// Desc:客户类型代码
///
public string Code { get; set; }
}
///
/// 验证
///
public class ClientSelectInfoReqValidator : AbstractValidator
{
///
/// 构造函数
///
public ClientSelectInfoReqValidator()
{
this.RuleFor(o => o.Code)
.NotEmpty().WithName("客户类型代码");
this.RuleFor(o => o.BusinessId)
.NotEmpty().WithName("业务Id");
this.RuleFor(o => o.BusinessType)
.NotEmpty().WithName("业务类型");
}
}