using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MailSend.Web.Models { public class RespCommon { /// /// 成功 /// public const int RespCodeSuccess = 0; /// /// 参数错误 /// public const int RespCodeParamError = -10; /// /// 服务器错误 /// 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") : ""; } } } }