疯狂的狮子li
2021-12-24 5ca038d888922e93bf45c7bd37f3c6dce849dcff
ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/CaptchaProperties.java
@@ -1,5 +1,7 @@
package com.ruoyi.framework.config.properties;
import com.ruoyi.common.enums.CaptchaCategory;
import com.ruoyi.common.enums.CaptchaType;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@@ -13,12 +15,24 @@
@Component
@ConfigurationProperties(prefix = "captcha")
public class CaptchaProperties {
    // 验证码类型
    private String type;
    // 验证码类别
    private String category;
    // 数字验证码位数
   /**
    * 验证码类型
     */
    private CaptchaType type;
   /**
    * 验证码类别
    */
    private CaptchaCategory category;
   /**
    * 数字验证码位数
    */
    private Integer numberLength;
    // 字符验证码长度
   /**
    * 字符验证码长度
    */
    private Integer charLength;
}