64 lines
1.4 KiB
C#
64 lines
1.4 KiB
C#
using SqlSugar;
|
|
using YD_Event.Core.Enum;
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
/// <summary>
|
|
/// 短信发送日志
|
|
/// </summary>
|
|
[SugarTable("SysSmsLog")]
|
|
public class SysSmsLog : Entity<long>, ICreatedTime
|
|
{
|
|
/// <summary>
|
|
/// 接收手机号
|
|
/// </summary>
|
|
[SugarColumn(Length = 20)]
|
|
public string Phone { get; set; }
|
|
|
|
/// <summary>
|
|
/// 短信模板Code
|
|
/// </summary>
|
|
[SugarColumn(Length = 50)]
|
|
public string TemplateCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 模板参数
|
|
/// </summary>
|
|
[SugarColumn(Length = 512, IsNullable = true)]
|
|
public string TemplateParam { get; set; }
|
|
|
|
/// <summary>
|
|
/// 发送状态(成功/失败)
|
|
/// </summary>
|
|
public bool Success { get; set; }
|
|
|
|
/// <summary>
|
|
/// 响应代码
|
|
/// </summary>
|
|
[SugarColumn(Length = 50, IsNullable = true)]
|
|
public string ResponseCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 响应消息
|
|
/// </summary>
|
|
[SugarColumn(Length = 512, IsNullable = true)]
|
|
public string ResponseMessage { get; set; }
|
|
|
|
/// <summary>
|
|
/// 请求ID
|
|
/// </summary>
|
|
[SugarColumn(Length = 128, IsNullable = true)]
|
|
public string RequestId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 异常信息
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "text", IsNullable = true)]
|
|
public string Exception { get; set; }
|
|
|
|
/// <summary>
|
|
/// 发送时间
|
|
/// </summary>
|
|
public DateTime CreatedTime { get; set; }
|
|
}
|