using DS.Module.Core;
using FluentValidation;
using SqlSugar;
namespace DS.WMS.Core.Code.Dtos;
///
/// 工厂请求实体
///
public class CodeFactoryReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 工厂中文名称
///
public string FactoryName { get; set; }
///
/// 工厂英文文名称
///
public string EnName { get; set; }
///
/// 工厂地址
///
public string FactoryAddress { get; set; }
///
/// 工厂联系人
///
public string FactoryAttn { get; set; }
///
/// 工厂联系电话
///
public string FactoryTel { get; set; }
///
/// 委托单位Id
///
public long CustomerId { get; set; }
///
/// 委托单位 t_info_client CUSTNAME
///
public string CustomerName { get; set; }
///
/// 状态 0 启用 1 禁用
///
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
///
/// 备注
///
public string Note { get; set; } = "";
}
///
/// 验证
///
public class CodeFactoryReqValidator : AbstractValidator
{
///
/// 构造函数
///
public CodeFactoryReqValidator()
{
this.RuleFor(o => o.FactoryName)
.NotEmpty().WithName("工厂中文名称");
}
}