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