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 CodeUserEmailReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 邮箱账号
///
public string MailAccount { get; set; }
///
/// 发件显示名
///
public string ShowName { get; set; }
///
/// 密码
///
public string Password { get; set; }
///
/// 收件服务器
///
public string ReceiveServer { get; set; }
///
/// 使用IMAP4
///
public bool? UseImap { get; set; } = false;
///
/// 收件端口
///
public int? ReceivePort { get; set; } = 0;
///
/// 收件SSL
///
public bool? ReceiveSSL { get; set; } = false;
///
/// 发件服务器
///
public string SmtpServer { get; set; }
///
/// 发件端口
///
public int? SmtpPort { get; set; } = 0;
///
/// 发件SSL
///
public bool? SmtpSSL { get; set; } = false;
///
/// 状态 0启用 1禁用
///
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}
///
/// 验证
///
public class CodeUserEmailReqValidator : AbstractValidator
{
///
/// 构造函数
///
public CodeUserEmailReqValidator()
{
//this.RuleFor(o => o.EdiTypeCode)
// .NotEmpty().WithName("EDI类型代码");
//this.RuleFor(o => o.SendType)
// .NotEmpty().WithName("发送类型");
}
}
}