WebUrlConfig.java 1.06 KB
package com.studymachine.www.other;


import com.studymachine.www.enumtype.TopicEnum;


public class WebUrlConfig {

    /**
     * 精准强化url
     * @param pointId 章节id
     * @return url
     */
    public static String accurateStrengthen(String pointId){
        return accurateStrengthen(pointId,TopicEnum.INTENSIFY);
    }
    public static String accurateStrengthen(String pointId, TopicEnum pointType){
        return Tool.joinUrl(AppConfig.getWebHostUrl(),"") + "?pointId="+pointId+"&pointType="+pointType.getValue();
    }



    /**
     * 错题收纳url
     * @return url
     */
    public static String wrongTopicReceive(){
        return Tool.joinUrl(AppConfig.getWebHostUrl(),"/pages/wrongTopicReceive/wrongTopicReceive") ;
    }

    /**
     * 知识竞技
     * @param pointId 章节id
     * @param topicEnum 难度
     * @return url
     */
    public static String Arena(String pointId,TopicEnum topicEnum){
        return Tool.joinUrl(AppConfig.getWebHostUrl(),"/pages/arena/result/result?pointType="+topicEnum.getValue()+"&pointId="+pointId) ;
    }


}