类 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddrawCaptcha(String captchaId, jakarta.servlet.http.HttpServletResponse response) plus.hiver.common.api.ResultinitCaptcha(Boolean isDigit, Integer length) plus.hiver.common.api.ResultsendEditMobileSmsCode(String mobile, jakarta.servlet.http.HttpServletRequest request) plus.hiver.common.api.ResultsendLoginSmsCode(String mobile, jakarta.servlet.http.HttpServletRequest request) plus.hiver.common.api.ResultsendRegistSmsCode(String mobile, jakarta.servlet.http.HttpServletRequest request) plus.hiver.common.api.ResultsendResetSmsCode(String mobile, jakarta.servlet.http.HttpServletRequest request) plus.hiver.common.api.ResultsendSms(String mobile, Integer range, String templateType, jakarta.servlet.http.HttpServletRequest request)
-
构造器详细资料
-
CaptchaController
public CaptchaController()
-
-
方法详细资料
-
initCaptcha
-
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
-