using FluentValidation;
namespace DS.WMS.Core.System.Dtos;
///
/// 租户编辑实体
///
public class TenantReq
{
///
///
///
public long Id { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 唯一编码
///
public string TaxNo { get; set; }
///
/// 电话
///
public string Phone { get; set; } = "";
///
/// 邮箱
///
public string Email { get; set; } = "";
}
///
/// 验证
///
public class TenantInputValidator : AbstractValidator
{
///
/// 构造函数
///
public TenantInputValidator()
{
this.RuleFor(o => o.Name)
.NotEmpty().WithName("租户名称");
this.RuleFor(o => o.TaxNo)
.NotEmpty().WithName("租户唯一编码");
}
}