package com.mjsheng.myappstore.utils;


import com.mjsheng.myappstore.network.Network;

/**
 * @ClassName Config
 * @Description 客户端所有的配置项
 */
public class Configure {
    /**
     * 获取数据成功
     **/
    public static final int SUCCESS = 200;

    //http tag
    public static final String HTTP_TAG_APP_RECOMMEND = "app_recommend";
    public static final String HTTP_TAG_SEARCH = "search";
    public static final String HTTP_TAG_CATEGORY_TABLE = "category_table";
    public static final String HTTP_TAG_RANKING_APPS = "ranking_apps";


    public static final String HTTP_TYPE_BRAND = "brand品牌";
    public static final String HTTP_TYPE_PROJECT = "project专题";
    public static final String HTTP_TYPE_HOMEPAGE = "homepage推荐";
    public static final String RANKING_TYPE_UPDATE = "update更新";
    public static final String RANKING_TYPE_APPSOTRE = "appstore应用商店弹窗";
    public static final String RANKING_TYPE_MOREAPP = "subjectmore更多应用";
    public static final String HTTP_KEY = "YTM3YTAxNTJmMmZmNzkyM2E2YzIwZjlhZTc0NzNmMGI=";

    private static final String HTTP_TAG_HEAD = "http://www.uiapi.tuiinfo.com/index.php/";
    //    private static final String HTTP_TAG_HEAD_NEW = "http://www.jiaoguanyi.cn/api/";
    private static final String HTTP_TAG_HEAD_NEW = Network.ROOT_URL;


    // 应用更新接口 通过包名获取app信息  post baoming
    public static final String HTTP_TAG_APPBAOMING = HTTP_TAG_HEAD + "App";


    // 应用详情 通过包名获取app信息  post baoming
//    public static final String HTTP_TAG_APPDETAILS= HTTP_TAG_HEAD + "Appdetails";
    public static final String HTTP_TAG_APPDETAILS = HTTP_TAG_HEAD_NEW + "app/index";


    // 获取子系统分类
    public static final String HTTP_TAG_SYSTEMTYPE = HTTP_TAG_HEAD_NEW + "category/index";

    // 获取子系统分类应用
//    public static final String HTTP_TAG_SYSTEMAPP = HTTP_TAG_HEAD + "Xitong/zixitongapp?zxtid=";
    public static final String HTTP_TAG_SYSTEMAPP = HTTP_TAG_HEAD_NEW + "category/app";

    // 推荐页信息
    //改为最新上架 所有的应用
//    public static final String HTTP_TAG_HOMEPAGE_URL = HTTP_TAG_HEAD + "Tuij";
    public static final String HTTP_TAG_HOMEPAGE_URL = HTTP_TAG_HEAD_NEW + "recommend/index";


    // 排行页贴心推荐
//    public static final String HTTP_TAG_RECOMM_URL = HTTP_TAG_HEAD + "Top";
    public static final String HTTP_TAG_RECOMM_URL = HTTP_TAG_HEAD_NEW + "rank/index";

    // 推荐页最新上架
    public static final String HTTP_TAG_LATEST_URL = HTTP_TAG_HEAD_NEW + "recommend/newreleases";
//    public static final String HTTP_TAG_LATEST_URL = HTTP_TAG_HEAD + "Tuij/gengduo?tj=1";

    // 推荐页热门应用
    public static final String HTTP_TAG_HOTS_URL = HTTP_TAG_HEAD_NEW + "recommend/hot";
//    public static final String HTTP_TAG_HOTS_URL = HTTP_TAG_HEAD + "Tuij/gengduo?tj=2";


    // 推荐页首页专题品牌推荐
    public static final String HTTP_TAG_HOME_PAGE_URL = HTTP_TAG_HEAD + "Tuij/pztj";

    // 品牌页信息
    public static final String HTTP_TAG_BRAND_URL = HTTP_TAG_HEAD_NEW + "brand/index";

    // 品牌详情页
//    public static final String HTTP_TAG_BRAND_DETAILS_URL = HTTP_TAG_BRAND_URL + "/pinpaiapp?pid=";
    public static final String HTTP_TAG_BRAND_DETAILS_URL = HTTP_TAG_HEAD_NEW + "brand/app";

    // 专题页信息
    public static final String HTTP_TAG_PROJECT_URL = HTTP_TAG_HEAD_NEW + "subject/index";

    // 专题详情页
//    public static final String HTTP_TAG_PROJECT_DETAILS_URL = HTTP_TAG_PROJECT_URL + "/zhuantiapp?ztid=";
    public static final String HTTP_TAG_PROJECT_DETAILS_URL = HTTP_TAG_HEAD_NEW + "subject/app";


    // 搜索页面
    public static final String HTTP_TAG_SEARCH_URL = HTTP_TAG_HEAD_NEW + "search/index";
//    public static final String HTTP_TAG_SEARCH_URL = HTTP_TAG_HEAD + "Soea";


    // 下载接口 根据包名匹配 请求后更新下载次数
//    public static final String HTTP_TAG_DOWNLOAD_URL = HTTP_TAG_HEAD + "Down?baoming=";
    public static final String HTTP_TAG_DOWNLOAD_URL = HTTP_TAG_HEAD_NEW + "count/index";


    // app详细窗口 相关推荐接口
    public static final String HTTP_TAG_APPDETAIL_URL = HTTP_TAG_HEAD + "Tuij/xiang?aid=";


    //  子系统弹窗接口
    public static final String HTTP_TAG_APPSTORE_URL = HTTP_TAG_HEAD + "Xitong/zixitongapp?zxtid=";

    //  用户定位接口  post user_name/user_position
    public static final String HTTP_TAG_POSITION = HTTP_TAG_HEAD + "Position";

    //  获取注册验证码接口  post num
    public static final String HTTP_TAG_SMSCODE = HTTP_TAG_HEAD + "User/code";


    //  用户注册接口  post user_name/user_pwd
    public static final String HTTP_TAG_USERREGISTER = HTTP_TAG_HEAD + "User";


    //  用户登录接口  post user_name/user_pwd
    public static final String HTTP_TAG_USERLOG = HTTP_TAG_HEAD + "User/tell";


    //  修改密码接口  post user_name/user_pwd
    public static final String HTTP_TAG_CHANGEPWD = HTTP_TAG_HEAD + "User/mima";


    //  重置密码接口  post user_name/user_pwd
    public static final String HTTP_TAG_RESETPWD = HTTP_TAG_HEAD + "User/pwd";


    //  家长密码修改接口  post user_name/user_pwd
    public static final String HTTP_TAG_PARENTPWD = HTTP_TAG_HEAD + "User/jiachang";


    //  家长密码找回接口  post user_name/user_pwd
    public static final String HTTP_TAG_FORGETPARENTPWD = HTTP_TAG_HEAD + "User/zhjcmm";


    //  宝宝信息接口  post user_name
    public static final String HTTP_TAG_BABYINFO = HTTP_TAG_HEAD + "Baob";


    //  家长信箱接口  post user_name/xin_file
    public static final String HTTP_TAG_PARENTMAIL = HTTP_TAG_HEAD + "Xin";


    //  学习日志上传接口  post user_name/log_file
    public static final String HTTP_TAG_LEARNLOG = HTTP_TAG_HEAD + "Log";


    //  学习日志下载接口  post user_name
    public static final String HTTP_TAG_LEARNLOG_DOWNLOAD = HTTP_TAG_HEAD + "Log/dow";


    //  学习日志图片上传  post log_head 文件
    public static final String HTTP_TAG_UPLOADIMAGE = HTTP_TAG_HEAD + "Log/upimg";


    //  获取评论
//    public static final String HTTP_TAG_GET_APP_COMMENTS_REQ = HTTP_TAG_HEAD + "Pinglun/pls";
    public static final String HTTP_TAG_GET_APP_COMMENTS_REQ = HTTP_TAG_HEAD_NEW + "score/get";

    //  提交评论
//    public static final String HTTP_TAG_POST_APP_COMMENTS_REQ = HTTP_TAG_HEAD + "Pinglun";
    public static final String HTTP_TAG_POST_APP_COMMENTS_REQ = HTTP_TAG_HEAD_NEW + "score/set";

    // 激活码接口
    public static final String HTTP_TAG_USERCODE = HTTP_TAG_HEAD + "Jicode";


    // 更新接口
    public static final String HTTP_TAG_UPDATE = HTTP_TAG_HEAD + "Upapp";

    //  课程表接口  post user_name
    public static final String HTTP_TAG_COURSETAB = HTTP_TAG_HEAD + "Course";


    //  积分上传接口
    public static final String HTTP_TAG_SETPOINT = HTTP_TAG_HEAD + "/Jifen";

    //  积分获取接口
    public static final String HTTP_TAG_GETPOINT = HTTP_TAG_HEAD + "Jifen/get";


    public static final String HTTP_TAG_FIRST = HTTP_TAG_HEAD_NEW + "lock/index";

    public static final String SEND_DEVICES= HTTP_TAG_HEAD_NEW + "Mac/getMac";

    public static final String SEND_USEDTIME= HTTP_TAG_HEAD_NEW + "Applog/getAppLog";

}
