xuekang
2024-05-10 106518c5979ad04d00e1aa991389101d188ce050
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package org.dromara.auth.properties;
 
import org.dromara.auth.enums.CaptchaCategory;
import org.dromara.auth.enums.CaptchaType;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
 
/**
 * 验证码配置
 *
 * @author ruoyi
 */
@Data
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "security.captcha")
public class CaptchaProperties {
    /**
     * 验证码类型
     */
    private CaptchaType type;
 
    /**
     * 验证码类别
     */
    private CaptchaCategory category;
 
    /**
     * 数字验证码位数
     */
    private Integer numberLength;
 
    /**
     * 字符验证码长度
     */
    private Integer charLength;
 
    /**
     * 验证码开关
     */
    private Boolean enabled;
 
}