package com.bbitcn.silk.utils.network;

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

    public static void initUrl() {
        if (userProduct) {
            // 生产环境
            baseUrls = "https://f8.api.dev.bbitcn.cn/";
        } else {
            // 测试环境
            baseUrls = "http://f8.api.dev.bbitcn.cn:9999/";
        }
        login = baseUrls + "api/CBMSAccount/LoginJwtAndValidHardware";
        getNewVersion = baseUrls + "api/app/App.ZHCS.GetNewVersion";
        auth = baseUrls + "api/client/Authorize.AddInfo";
        isAuth = baseUrls + "api/client/Authorize.IsAuthorize";
        getUserInfo = baseUrls + "api/CBMSAccount/GetLoginInfoByJwt";
        getPriceOfToday = baseUrls + "api/app/App.ZHCS.Common.GetTodayPrice";
        queryList = baseUrls + "api/app/App.ZHCS.Bangdan.GetViewList";
        queryStatistics = baseUrls + "api/app/App.ZHCS.Bangdan.GetStatistic";
        getAllType = baseUrls + "api/app/App.ZHCS.GetAllSgType";
        toConvert = baseUrls + "api/app/App.ZHCS.Bangdan.ChangeSgType";
        tareSubmit = baseUrls +"api/app/App.ZHCS.Bangdan.KoupiDingjia";
        weather = baseUrls +"api/Weather/GetWeatherInfoForecasts";
        getAboutInfo = baseUrls + "api/app/App.ZHCS.Common.GetAboutInfo";
        checkAuth = baseUrls + "api/client/Authorize.IsAuthorize";
        configOrCancel = baseUrls + "api/ShouGou/ChengZhong.UpdateBillState";
    }

    /**
     * 登录
     * 获取Token
     */
    public static String login;
    /**
     * 获取最新版本
     */
    public static String getNewVersion;
    /**
     * 进行授权
     */
    public static String auth;
    /**
     * 判断是否授权
     */
    public static String isAuth;
    /**
     * 获取用户信息
     */
    public static String getUserInfo;
    /**
     * 获取今日价格
     */
    public static String getPriceOfToday;
    /**
     * 磅单查询 扣皮定价 茧别转换
     */
    public static String queryList;
    /**
     * 收购统计
     */
    public static String queryStatistics;
    /**
     * 查询所有收购类型
     */
    public static String getAllType;
    /**
     * 茧别转换
     */
    public static String toConvert;
    /**
     * 扣皮保存
     */
    public static String tareSubmit;
    /**
     * 天气
     */
    public static String weather;
    /**
     * 关于信息
     */
    public static String getAboutInfo;
    /**
     * 检查授权状态
     */
    public static String checkAuth;
    /**
     * 弃售/确认售
     */
    public static String configOrCancel;
}
