WebUrlConfig.java
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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) ;
}
}