sunpengfei
2025-11-28 312ebed2d86858e4fb57ec09679244e9b806b57f
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
using Aop.Api.Domain;
using NetTopologySuite.Mathematics;
using Newtonsoft.Json;
using pingan.b2bic.Sign.sign;
using System;
using System.Collections.Generic;
using System.DirectoryServices.Protocols;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
 
namespace ApiTools.Core
{
    /// <summary>
    /// 诚立业发送短信
    /// </summary>
    public class ChengLiYeSmsSubmitRequest
    {
        //isms    Integer 是否国际短信(选填),不填则默认为0。
 
        /// <summary>
        /// 用户名(必填)
        /// </summary>
        [JsonProperty("userName")]
        public string UserName { get; set; }
        /// <summary>
        /// 签名(必填)
        /// MD5(userName+password+mobile+content)
        /// password为明文密码
        /// </summary>
        [JsonProperty("sign")]
        public string Sign { get; set; }
        /// <summary>
        /// 手机号。多个手机号为用半角逗号分开,如13899999999,13688888888(最多1万个,必填)
        /// </summary>
        [JsonProperty("mobile")]
        public string Mobile { get; set; }
        /// <summary>
        /// 发送内容(必填),不超过1000字
        /// </summary>
        [JsonProperty("content")]
        public string Content { get; set; }
        /// <summary>
        /// 定时时间,为空时表示立即发送(选填)
        /// 格式:yyyy-MM-dd HH:mm:ss
        /// 例如:2016-09-10 09:00:00
        /// </summary>
        [JsonProperty("dstime")]
        public string Dstime { get; set; }
        /// <summary>
        /// 用户自定义扩展(选填)。106码号后面扩展的部分。需要和后台人员确认权限
        /// </summary>
        [JsonProperty("ext")]
        public string Ext { get; set; }
        /// <summary>
        /// 客户自定义消息id(选填),如果客户不填则由平台侧生成唯一编号
        /// 注:不要带|字符
        /// </summary>
        [JsonProperty("seqid")]
        public string Seqid { get; set; }
        /// <summary>
        /// 是否国际短信(选填),不填则默认为0。
        /// 0-国内短信(不包含港澳台)
        /// mobile字段不要带86国家区域识别码。
        /// 1-国际短信(包含港澳台)
        /// mobile字段带上国家区域代码。如果值是1,不要发送国内号码
        /// </summary>
        [JsonProperty("isms")]
        public string Isms { get; set; }
    }
 
    /// <summary>
    /// 诚立业发送短信
    /// </summary>
    public class ChengLiYeSmsSubmitResponse
    {
        /// <summary>
        /// 回错误代码。1-表示成功,其他参考错误代码描述
        /// </summary>
        [JsonProperty("resultCode")]
        public string ResultCode { get; set; }
        /// <summary>
        /// 错误代码描述
        /// </summary>
        [JsonProperty("resultMsg")]
        public string ResultMsg { get; set; }
        /// <summary>
        /// 系统生成的消息编号
        /// </summary>
        [JsonProperty("msgid")]
        public string Msgid { get; set; }
        /// <summary>
        /// 用户指定的流水号.如果没有指定,则为msgid值
        /// </summary>
        [JsonProperty("seqid")]
        public string Seqid { get; set; }
    }
}