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

/**
 * 牦牛疾病预警常量。
 */
public final class YakDiseaseWarningRules
{
    public static final int WARNING_TYPE_TEMP = 1;

    public static final int WARNING_TYPE_STEPS = 2;

    public static final int WARNING_TYPE_QUARANTINE = 3;

    public static final int WARNING_TYPE_DIAGNOSIS = 4;

    public static final int WARNING_TYPE_AI_CONSULT = 5;

    public static final int WARNING_TYPE_OTHER = 9;

    public static final String DATA_SOURCE_LOCAL = "local_analysis";

    public static final String MSG_DATE_RANGE_INVALID = "开始日期不能晚于结束日期";

    public static final String MSG_NOT_FOUND = "预警记录不存在";

    public static final String MSG_FORBIDDEN = "无权查看该预警";

    public static final String MSG_SYNC_IN_PROGRESS = "正在同步，请稍候";

    private YakDiseaseWarningRules()
    {
    }

    public static boolean isValidWarningType(Integer type)
    {
        return type != null && (type == WARNING_TYPE_TEMP || type == WARNING_TYPE_STEPS
                || type == WARNING_TYPE_QUARANTINE || type == WARNING_TYPE_DIAGNOSIS
                || type == WARNING_TYPE_AI_CONSULT || type == WARNING_TYPE_OTHER);
    }
}
