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.
74 lines
1.8 KiB
C#
74 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MailSend.Web.Models
|
|
{
|
|
public class RespCommon
|
|
{
|
|
/// <summary>
|
|
/// 成功
|
|
/// </summary>
|
|
public const int RespCodeSuccess = 0;
|
|
|
|
/// <summary>
|
|
/// 参数错误
|
|
/// </summary>
|
|
public const int RespCodeParamError = -10;
|
|
|
|
/// <summary>
|
|
/// 服务器错误
|
|
/// </summary>
|
|
public const int RespCodeServerError = -100;
|
|
|
|
|
|
public bool Success { get; set; }
|
|
public string Message { get; set; }
|
|
public int Code { get; set; }
|
|
}
|
|
|
|
|
|
public class RespPage : RespCommon
|
|
{
|
|
public int Offset { get; set; }
|
|
public int Limit { get; set; }
|
|
public int Total { get; set; }
|
|
public object DataList { get; set; }
|
|
}
|
|
|
|
public class RespMailSend
|
|
{
|
|
|
|
public string GID { get; set; }
|
|
public string SendTo { get; set; }
|
|
public string CCTo { get; set; }
|
|
public string Title { get; set; }
|
|
public string SendStatus { get; set; }
|
|
public DateTime? SendTime { get; set; }
|
|
public int TryCount { get; set; }
|
|
public DateTime CreateTime { get; set; }
|
|
public string ShowName { get; set; }
|
|
public string Sender { get; set; }
|
|
public string AttachFiles { get; set; }
|
|
public bool CustomerSend { get; set; }
|
|
public string ResultText { get; set; }
|
|
|
|
public string StrCreateTime
|
|
{
|
|
get
|
|
{
|
|
return CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
|
|
}
|
|
}
|
|
|
|
public string StrSendTime
|
|
{
|
|
get
|
|
{
|
|
return SendTime.HasValue ? SendTime.Value.ToString("yyyy-MM-dd HH:mm:ss") : "";
|
|
}
|
|
}
|
|
}
|
|
} |