You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.2 KiB
C#
84 lines
2.2 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// 用户邮箱配置请求
|
|
/// </summary>
|
|
public class CodeUserEmailReq
|
|
{
|
|
/// <summary>
|
|
/// 主键Id
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
/// <summary>
|
|
/// 邮箱账号
|
|
/// </summary>
|
|
public string MailAccount { get; set; }
|
|
/// <summary>
|
|
/// 发件显示名
|
|
/// </summary>
|
|
public string ShowName { get; set; }
|
|
/// <summary>
|
|
/// 密码
|
|
/// </summary>
|
|
public string Password { get; set; }
|
|
/// <summary>
|
|
/// 收件服务器
|
|
/// </summary>
|
|
public string ReceiveServer { get; set; }
|
|
/// <summary>
|
|
/// 使用IMAP4
|
|
/// </summary>
|
|
public bool? UseImap { get; set; } = false;
|
|
/// <summary>
|
|
/// 收件端口
|
|
/// </summary>
|
|
public int? ReceivePort { get; set; } = 0;
|
|
/// <summary>
|
|
/// 收件SSL
|
|
/// </summary>
|
|
public bool? ReceiveSSL { get; set; } = false;
|
|
/// <summary>
|
|
/// 发件服务器
|
|
/// </summary>
|
|
public string SmtpServer { get; set; }
|
|
/// <summary>
|
|
/// 发件端口
|
|
/// </summary>
|
|
public int? SmtpPort { get; set; } = 0;
|
|
/// <summary>
|
|
/// 发件SSL
|
|
/// </summary>
|
|
public bool? SmtpSSL { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 状态 0启用 1禁用
|
|
/// </summary>
|
|
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
|
}
|
|
/// <summary>
|
|
/// 验证
|
|
/// </summary>
|
|
public class CodeUserEmailReqValidator : AbstractValidator<CodeUserEmailReq>
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public CodeUserEmailReqValidator()
|
|
{
|
|
//this.RuleFor(o => o.EdiTypeCode)
|
|
// .NotEmpty().WithName("EDI类型代码");
|
|
//this.RuleFor(o => o.SendType)
|
|
// .NotEmpty().WithName("发送类型");
|
|
}
|
|
}
|
|
}
|