add 增加验证码开关

This commit is contained in:
疯狂的狮子li
2021-05-25 14:02:50 +08:00
parent 5dc873209e
commit 2885ced2c7
2 changed files with 31 additions and 10 deletions

View File

@ -13,12 +13,29 @@ import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "captcha")
public class CaptchaProperties {
// 验证码类型
/**
* 验证码开关
*/
private Boolean enabled;
/**
* 验证码类型
*/
private String type;
// 验证码类别
/**
* 验证码类别
*/
private String category;
// 数字验证码位数
/**
* 数字验证码位数
*/
private Integer numberLength;
// 字符验证码长度
/**
* 字符验证码长度
*/
private Integer charLength;
}