using MediatR; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ApiTools.Core { /// /// 阿里云短信平台回传通知 /// [Resource([EnumResourceController.CommonServerSmsUtils], Method = EnumResourceMethod.Post, AllowAnonymous = true, CustomResponse = true)] public class SmsAliyunNotifyCommand : List, IRequest { } public class SmsAliyunNotifyCommandItem { /// /// 转发给运营商的时间。 /// [JsonProperty("send_time")] public DateTime? SendTime { get; set; } /// /// 收到运营商回执的时间。 /// [JsonProperty("report_time")] public DateTime? ReportTime { get; set; } /// /// 是否发送成功。 /// [JsonProperty("success")] public bool Success { get; set; } /// /// 错误码信息描述。 /// [JsonProperty("err_msg")] public string ErrMsg { get; set; } /// /// 错误码。 /// [JsonProperty("err_code")] public string ErrCode { get; set; } /// /// 短信接收号码。 /// [JsonProperty("phone_number")] public string PhoneNumber { get; set; } /// /// 短信长度。 /// [JsonProperty("sms_size")] public string SmsSize { get; set; } /// /// 发送回执ID,即发送流水号。 /// [JsonProperty("biz_id")] public string BizId { get; set; } /// /// 调用发送短信SendSms接口时传的outId。 /// [JsonProperty("out_id")] public string OutId { get; set; } } /// /// 阿里云短信平台回传通知 /// public class SmsAliyunNotifyCommandResult { /// /// 回调码 /// public int Code { get; set; } /// /// 消息 /// public string Msg { get; set; } } }