sunpengfei
2025-09-30 a6e5a2e630a4a1dcfd9def94c20bde6bec89f96f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
using MediatR;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace ApiTools.Core
{
    /// <summary>
    /// 阿里云短信平台回传通知
    /// </summary>
    [Resource([EnumResourceController.CommonServerSmsUtils], Method = EnumResourceMethod.Post, AllowAnonymous = true, CustomResponse = true)]
    public class SmsAliyunNotifyCommand : List<SmsAliyunNotifyCommandItem>, IRequest<SmsAliyunNotifyCommandResult>
    {
    }
 
    public class SmsAliyunNotifyCommandItem
    {
        /// <summary>
        /// 转发给运营商的时间。
        /// </summary>
        [JsonProperty("send_time")]
        public DateTime? SendTime { get; set; }
        /// <summary>
        /// 收到运营商回执的时间。
        /// </summary>
        [JsonProperty("report_time")]
        public DateTime? ReportTime { get; set; }
        /// <summary>
        /// 是否发送成功。
        /// </summary>
        [JsonProperty("success")]
        public bool Success { get; set; }
        /// <summary>
        /// 错误码信息描述。
        /// </summary>
        [JsonProperty("err_msg")]
        public string ErrMsg { get; set; }
        /// <summary>
        /// 错误码。
        /// </summary>
        [JsonProperty("err_code")]
        public string ErrCode { get; set; }
        /// <summary>
        /// 短信接收号码。
        /// </summary>
        [JsonProperty("phone_number")]
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 短信长度。
        /// </summary>
        [JsonProperty("sms_size")]
        public string SmsSize { get; set; }
        /// <summary>
        /// 发送回执ID,即发送流水号。
        /// </summary>
        [JsonProperty("biz_id")]
        public string BizId { get; set; }
        /// <summary>
        /// 调用发送短信SendSms接口时传的outId。
        /// </summary>
        [JsonProperty("out_id")]
        public string OutId { get; set; }
    }
 
    /// <summary>
    /// 阿里云短信平台回传通知
    /// </summary>
    public class SmsAliyunNotifyCommandResult
    {
        /// <summary>
        /// 回调码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Msg { get; set; }
    }
}