类 CaptchaController

java.lang.Object
plus.hiver.module.system.controller.CaptchaController

@RestController @RequestMapping("/hiver/common/captcha") public class CaptchaController extends Object

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 构造器详细资料

    • CaptchaController

      public CaptchaController()
  • 方法详细资料

    • initCaptcha

      @GetMapping("/init") public plus.hiver.common.api.Result initCaptcha(@RequestParam(required=false,defaultValue="false") Boolean isDigit, @RequestParam(required=false,defaultValue="4") Integer length)
    • drawCaptcha

      @GetMapping("/draw/{captchaId}") public void drawCaptcha(@PathVariable("captchaId") String captchaId, jakarta.servlet.http.HttpServletResponse response) throws IOException
      抛出:
      IOException
    • sendRegistSmsCode

      @GetMapping("/sendRegistSms/{mobile}") public plus.hiver.common.api.Result sendRegistSmsCode(@PathVariable String mobile, jakarta.servlet.http.HttpServletRequest request)
    • sendLoginSmsCode

      @GetMapping("/sendLoginSms/{mobile}") public plus.hiver.common.api.Result sendLoginSmsCode(@PathVariable String mobile, jakarta.servlet.http.HttpServletRequest request)
    • sendResetSmsCode

      @GetMapping("/sendResetSms/{mobile}") public plus.hiver.common.api.Result sendResetSmsCode(@PathVariable String mobile, jakarta.servlet.http.HttpServletRequest request)
    • sendEditMobileSmsCode

      @GetMapping("/sendEditMobileSms/{mobile}") public plus.hiver.common.api.Result sendEditMobileSmsCode(@PathVariable String mobile, jakarta.servlet.http.HttpServletRequest request)
    • sendSms

      public plus.hiver.common.api.Result sendSms(String mobile, Integer range, String templateType, jakarta.servlet.http.HttpServletRequest request)
      参数:
      mobile - 手机号
      range - 发送范围 0发送给所有手机号 1只发送给注册手机 2只发送给未注册手机
      templateType - 短信模版类型 详见SettingConstant