|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.Module.Core.Data;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Code.Entity
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户邮箱账户
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarTable("code_user_email", "用户邮箱账户")]
|
|
|
|
|
public class CodeUserEmail : BaseModel<long>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 邮箱账号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "邮箱账号", Length = 100, IsNullable = true)]
|
|
|
|
|
public string MailAccount { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发件显示名
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "发件显示名", Length = 50, IsNullable = true)]
|
|
|
|
|
public string? ShowName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 密码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "密码", Length = 50, IsNullable = true)]
|
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 收件服务器
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "收件服务器", Length = 50, IsNullable = true)]
|
|
|
|
|
public string ReceiveServer { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 使用IMAP4
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "使用IMAP4", IsNullable = true,DefaultValue ="0")]
|
|
|
|
|
public bool? UseImap { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 收件端口
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "收件端口", Length = 50, IsNullable = true, DefaultValue = "0")]
|
|
|
|
|
public int? ReceivePort { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 收件SSL
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "收件SSL", IsNullable = true, DefaultValue = "0")]
|
|
|
|
|
public bool? ReceiveSSL { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发件服务器
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "发件服务器", Length = 50, IsNullable = true)]
|
|
|
|
|
public string SmtpServer { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发件端口
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "发件端口", Length = 50, IsNullable = true, DefaultValue = "0")]
|
|
|
|
|
public int? SmtpPort { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发件SSL
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "发件SSL", IsNullable = true, DefaultValue = "0")]
|
|
|
|
|
public bool? SmtpSSL { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 状态 0启用 1禁用
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "状态", DefaultValue = "0")]
|
|
|
|
|
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否为公司账号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否为公司账号", DefaultValue = "0")]
|
|
|
|
|
public bool IsCompany { get; set; } = false;
|
|
|
|
|
}
|
|
|
|
|
}
|