using DS.Module.Core;
using FluentValidation;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Code.Dtos
{
///
/// 订单关系人请求
///
public class CodeOrderContactReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 客户类别
///
public string CustomerType { get; set; }
///
/// 客户Id
///
public long CustomerId { get; set; }
///
/// 客户名称
///
public string CustomerName { get; set; }
///
/// 角色代码
///
public string RoleCode { get; set; }
///
/// 联系人
///
public string Name { get; set; }
///
/// 电话
///
public string Tel { get; set; }
///
/// 邮箱
///
public string Email { get; set; }
///
/// 排序
///
public int? OrderNo { get; set; } = 100;
///
/// 备注
///
public string Note { get; set; }
///
/// 状态 0启用 1禁用
///
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}
///
/// 验证
///
public class CodeOrderContactReqValidator : AbstractValidator
{
///
/// 构造函数
///
public CodeOrderContactReqValidator()
{
this.RuleFor(o => o.CustomerType)
.NotEmpty().WithName("客户类别");
//this.RuleFor(o => o.SendType)
// .NotEmpty().WithName("发送类型");
}
}
}