-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSmsOptions.cs
41 lines (37 loc) · 988 Bytes
/
SmsOptions.cs
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace Sugar.SMS
{
public class SmsOptions
{
/// <summary>
/// 短信服务类型(默认腾讯云)
/// </summary>
public SmsServiceType SmsServiceType { get; set; } = SmsServiceType.TencentSms;
/// <summary>
/// appid
/// </summary>
public int SmsAppid { get; set; }
/// <summary>
/// appkey
/// </summary>
public string SmsAppKey { get; set; }
/// <summary>
/// 签名公司
/// </summary>
public string SignCompany { get; set; }
/// <summary>
/// 数据是否加密
/// </summary>
public bool IsEncrypt { get; set; }
}
public enum SmsServiceType
{
[Description("腾讯云短信服务")]
TencentSms = 0,
[Description("阿里云短信服务")]
AliYunSms = 1
}
}