类 PushController

所有已实现的接口:
org.springframework.beans.factory.InitializingBean

public abstract class PushController extends SystemController
  • 构造器详细资料

    • PushController

      public PushController()
  • 方法详细资料

    • pushSmsValidateCode

      protected void pushSmsValidateCode(String code, String userIdOrMobile)
      发送短信验证码,登录与否都可调用。
      参数:
      code - 发送的验证码
      userIdOrMobile - 用户ID 或者 手机号
    • pushSmsNotification

      protected void pushSmsNotification(String templateCode, Map<String,String> param, String userIdOrMobile)
      推送短信内容,登录与否都可调用。
      参数:
      templateCode - 短信模板代码
      param - 参数
      userIdOrMobile - 用户ID 或者 手机号
    • pushMailNotification

      protected void pushMailNotification(String title, String content, String userIdOrMail)
      推送邮件通知,该方法无论登录都可调用。

      不登录的话,userIdOrMail 必须是邮件地址

      参数:
      title - 标题
      content - 内容
      userIdOrMail - 用户ID(或邮件地址)
    • pushMessageNotification

      protected void pushMessageNotification(PushData pushData)
      推送平台普通消息,不包括:邮件和短信。

      这些通知会保存到数据库中,一般为操作业务的各种通知,如:待办事项等。

      参数:
      pushData - 业务传递的数据