package com.ruoyi.web.modules.diagnosis.support;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * AI 问诊疫病预警定时任务配置 {@code diagnosis.ai-consult-disease-warning.*}
 */
@Component
@ConfigurationProperties(prefix = "diagnosis.ai-consult-disease-warning")
public class AiConsultDiseaseWarningProperties
{
    /** 是否启用定时扫描 */
    private boolean enabled = true;

    /** 单 IP 当月提问次数达到该阈值则触发地区预警 */
    private int threshold = 3;

    public boolean isEnabled()
    {
        return enabled;
    }

    public void setEnabled(boolean enabled)
    {
        this.enabled = enabled;
    }

    public int getThreshold()
    {
        return threshold;
    }

    public void setThreshold(int threshold)
    {
        this.threshold = threshold;
    }
}
