package com.cf.imes.module.system.framework.chenfeng.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

/**
 * chenfeng属性
 *
 * @author Gqr
 * @since 2026/1/9 11:50
 */
@ConfigurationProperties(prefix = "chenfeng")
@Validated
@Data
public class ChenfengProperties {
    private Captcha captcha = new Captcha();
    private Gray gray = new Gray();

    @Data
    public static class Captcha {
        /**
         * 是否开启验证码
         */
        private Boolean enable = true;
    }

    @Data
    public static class Gray {
        /**
         * 当前灰度版本
         */
        private String version = "1.0.0";

        /**
         * 默认版本
         */
        private String defaultVersion = "1.0.0";
    }
}
