U 修改资源读取和存储模块

升级版本为1.2
This commit is contained in:
liushaofeng
2021-08-07 17:16:57 +08:00
parent c5260356de
commit b56919f17d
14 changed files with 702 additions and 223 deletions
@@ -5,7 +5,7 @@ package cloud.tianai.captcha.template.slider;
* @date 2020/10/19 18:37
* @Description 滑块验证码模板
*/
public interface SliderCaptchaTemplate extends SliderCaptchaResource {
public interface SliderCaptchaTemplate {
/**
* 获取滑块验证码
@@ -14,6 +14,16 @@ public interface SliderCaptchaTemplate extends SliderCaptchaResource {
*/
SliderCaptchaInfo getSlideImageInfo();
/**
* 获取滑块验证码
*
* @param targetFormatName jpeg或者webp格式
* @param matrixFormatName png或者webp格式
* @return SliderCaptchaInfo
*/
SliderCaptchaInfo getSlideImageInfo(String targetFormatName, String matrixFormatName);
/**
* 百分比对比
*
@@ -22,4 +32,12 @@ public interface SliderCaptchaTemplate extends SliderCaptchaResource {
* @return true 成功 false 失败
*/
boolean percentageContrast(Float newPercentage, Float oriPercentage);
/**
* 获取滑块验证码资源管理器
*
* @return SliderCaptchaResourceManager
*/
SliderCaptchaResourceManager getSlideImageResourceManager();
}