package com.example.iot_controlhost.utils.network;

public class Url {
    /**
     * Environment 当前环境 true 生产环境 false 测试环境
     */
    private static final boolean userProduct = true;

    private static String baseUrls;

    public static void initUrl() {
        if (userProduct) {
            // 生产环境
            baseUrls = "https://iot.api.bbitcn.net/";
        } else {
            // 测试环境
            baseUrls = "http://wechat.lkstc.com/";
            // 局域网环境
            baseUrls = "http://10.0.4.43:7474/";// 何
        }
        getWorkList = baseUrls + "api/JobContent/GetJobContentConfigs";
        getWorkDetail = baseUrls + "api/JobContentConfig_EnvControl/GetJobContentConfigEnvControls";
        getStageList = baseUrls + "api/FeedingStageConfig/GetFeedingStageConfigs";
        getStageDetail = baseUrls + "api/FeedingStageConfig_EnvControl/GetFeedingStageConfigEnvControls";
        qrCodeCreate = baseUrls + "api/WeChat/QrcodeCreateArea";
        startWork = baseUrls + "api/JobContent/JobLoginStart";
        stopWork = baseUrls + "api/JobContent/JobLoginFinish";
        thWarning = baseUrls + "api/WeChat/TH_Warning";
        checkAppNewVersion = baseUrls + "api/Upgrade/GetNewVersion";
        getSilkwormTHTemplate = baseUrls + "api/IntelligentControlProgram/GetIntelligentControlProgramItems";
        getBatchPlan = baseUrls + "api/FeedingBatchPlan/GetFeedingBatchPlans";
        startCultivate = baseUrls + "api/AreaFeedingRecord/AddStartFeedingRecord";
        stopCultivate = baseUrls + "api/AreaFeedingRecord/AddEndFeedingRecord";
        getAirConditionerModelList = baseUrls + "api/AirCondition/GetAirConditionList";
        getAirConditionerCommandList = baseUrls + "api/AirCondition/GetAirConditionInstruct";
        uploadAirConditioner = baseUrls + "api/AirCondition/AddAirConditionInstruct";
        getConfig = baseUrls + "api/Host/GetHostDeviceConfig";
        uploadConfig = baseUrls + "api/Host/SetHostDeviceConfig";
        checkDevOpsPassword = baseUrls + "api/AreaSecret/ValidControlOpsSecret";
        notice = baseUrls + "api/AreaNotice/Notice";
        getInfo = baseUrls + "api/Area/GetAreaDetailedInfo";
        getToken = baseUrls + "api/_Account/LoginJwt";
        faceCheck = baseUrls + "api/BaiduAI/FaceSearch";
        sos = baseUrls + "api/UpgradeFrp/GetNewVersion";
        renew = baseUrls + " ";
        serverInfo = " ";
        weather = baseUrls + "api/Weather/GetWeatherInfoForecasts";
        uploadHostInfo = baseUrls + "api/Host/UpdateHostInfo";
        uploadLog = baseUrls + "";
    }

    /**
     * 获取作业列表
     */
    public static String getWorkList;
    public static String getWorkDetail;
    /**
     * 获取作业列表 新
     */
    public static String getStageList;
    public static String getStageDetail;

    /**
     * 获取主机带参数的二维码
     */
    public static String qrCodeCreate;
    /**
     * 开始作业登记
     */
    public static String startWork;
    /**
     * 结束作业登记
     */
    public static String stopWork;
    /**
     * 温湿度预警
     */
    public static String thWarning;
    /**
     * 报警
     */
    public static String notice;
    /**
     * 检查更新
     */
    public static String checkAppNewVersion;
    /**
     * 获取蚕种温湿度模板
     */
    public static String getSilkwormTHTemplate;
    /**
     * 获取批次计划
     */
    public static String getBatchPlan;
    /**
     * 开始共育
     */
    public static String startCultivate;
    /**
     * 结束共育
     */
    public static String stopCultivate;
    /**
     * 获取空调型号列表
     */
    public static String getAirConditionerModelList;
    /**
     * 获取指定型号的空调指令
     */
    public static String getAirConditionerCommandList;
    /**
     * 上传新空调
     * 型号及指令列表
     */
    public static String uploadAirConditioner;
    /**
     * 获取配置信息
     */
    public static String getConfig;
    /**
     * 上传配置信息
     */
    public static String uploadConfig;
    /**
     * 验证运维密码
     */
    public static String checkDevOpsPassword;
    /**
     * 获取房间详细信息
     */
    public static String getInfo;
    /**
     * 获取Token
     */
    public static String getToken;
    /**
     * 人脸检测
     */
    public static String faceCheck;
    /**
     * SOS
     */
    public static String sos;
    /**
     * 服务-续费 todo
     */
    public static String renew;
    /**
     * 服务-详情 todo
     */
    public static String serverInfo;
    /**
     * 天气
     */
    public static String weather;
    /**
     * 上传主机信息
     */
    public static String uploadHostInfo;
    /**
     * 上传日志 todo
     */
    public static String uploadLog;
}
