移动系统liao
2024-10-15 94da0698c01915b1e340415e080aa03050700d97
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
/***********************************************************************
 *            Project: baifenBinfa
 *        ProjectName: 百分兵法管理系统                               
 *                Web: http://chuanyin.com                     
 *             Author:                                        
 *              Email:                               
 *         CreateTime: 202403/02   
 *        Description: 暂无
 ***********************************************************************/
 
using System.Threading.Tasks;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.Sms;
using CoreCms.Net.Model.ViewModels.UI;
using Newtonsoft.Json.Linq;
 
namespace CoreCms.Net.IServices
{
    /// <summary>
    ///     短信发送日志 服务工厂接口
    /// </summary>
    public interface ICoreCmsSmsServices : IBaseServices<CoreCmsSms>
    {
        /// <summary>
        ///     发送短信(验证码)
        /// </summary>
        /// <param name="type"></param>
        /// <param name="mobile"></param>
        /// <returns></returns>
        Task<WebApiCallBack> DoSendSms(string type, string mobile);
 
        /// <summary>
        ///     发送短信统一方法
        /// </summary>
        /// <param name="mobile">接受者手机号码</param>
        /// <param name="code">模板编码</param>
        /// <param name="parameters">参数</param>
        /// <returns></returns>
        Task<WebApiCallBack> Send(string mobile, string code, JObject parameters);
 
        /// <summary>
        ///     接口通道发送短信
        /// </summary>
        /// <param name="mobile"></param>
        /// <param name="contentBody"></param>
        /// <param name="smsOptions"></param>
        Task<SMSReturnData> SendSms(string mobile, string contentBody, SmsOptions smsOptions);
 
        /// <summary>
        ///     校验短信验证码
        /// </summary>
        /// <param name="phone"></param>
        /// <param name="verCode"></param>
        /// <param name="code"></param>
        /// <returns></returns>
        Task<bool> Check(string phone, string verCode, string code);
    }
}