初始提交,滑块验证码功能已实现

This commit is contained in:
liushaofeng
2020-06-23 15:33:58 +08:00
parent 5c899a0220
commit ed85aadbff
2 changed files with 2 additions and 3 deletions
@@ -0,0 +1,39 @@
package cloud.tianai.captcha.template.slider;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* @Author: 天爱有情
* @Date 2020/5/29 8:04
* @Description 滑块验证码
*/
@Data
@AllArgsConstructor
public class SliderCaptchaInfo {
/**
* x轴
*/
private Integer x;
/**
* x轴百分比
*/
private Float xPercent;
/**
* y轴
*/
private Integer y;
/**
* 背景图
*/
private String backgroundImage;
/**
* 移动图
*/
private String sliderImage;
public static SliderCaptchaInfo of(Integer x, Float xPercent, Integer y, String backgroundImage, String sliderImage) {
return new SliderCaptchaInfo(x, xPercent, y, backgroundImage, sliderImage);
}
}