public interface CaptchaService
| 限定符和类型 | 方法和说明 |
|---|---|
String |
captchaType()
验证码类型
通过java SPI机制,接入方可自定义实现类,实现新的验证类型
|
ResponseModel |
check(CaptchaVO captchaVO)
核对验证码(前端)
|
void |
destroy(Properties config)
历史资源清除(过期的图片文件,生成的临时图片...)
|
ResponseModel |
get(CaptchaVO captchaVO)
获取验证码
|
void |
init(Properties config)
配置初始化
|
ResponseModel |
verification(CaptchaVO captchaVO)
二次校验验证码(后端)
|
void init(Properties config)
ResponseModel get(CaptchaVO captchaVO)
captchaVO - ResponseModel check(CaptchaVO captchaVO)
captchaVO - ResponseModel verification(CaptchaVO captchaVO)
captchaVO - String captchaType()
void destroy(Properties config)
config - 配置项 控制资源清理的粒度Copyright © 2023. All rights reserved.