|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace Quanjiang.DigitalScholl.SendSms
- {
- public interface ISms
- {
- Task<(string code, string randomNum, string message, string errorType)> SendSmsToSingle(string phoneNumber,
- SmsType st, List<string> sendParams = null);
-
- Task<(string code, string randomNum, string message, string errorType)> SendSmsToMulti(List<string> phoneNumbers,
- SmsType st, List<string> sendParams = null);
- }
-
- /// <summary>
- /// 短信通知类型
- /// </summary>
- public enum SmsType
- {
- /// <summary>
- /// 注册
- /// </summary>
- Register,
- /// <summary>
- /// 第三方(QQ,微信)快捷登录绑定
- /// </summary>
- LoginBind,
- /// <summary>
- /// 忘记密码
- /// </summary>
- ForgetPassWord,
- /// <summary>
- /// 开课通知
- /// </summary>
- LessionNotification,
- /// <summary>
- /// 学员请假通知
- /// </summary>
- LeaveNotification,
- /// <summary>
- /// 学员补课通知
- /// </summary>
- MakeUpMissedLessonsNotification,
- /// <summary>
- /// 班主任请假提醒
- /// </summary>
- ClassManagerLeaveNotification,
- /// <summary>
- /// 班主任补课提醒
- /// </summary>
- ClassManagerMakeUpMissedLessonsNotification,
- /// <summary>
- /// 教学工作安排推送
- /// </summary>
- EADateArrangeNotification,
- /// <summary>
- /// 流程提醒
- /// </summary>
- WorkFlowNotification
- }
- }
|