MakeUrlService.java
1.75 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.yohoufo.resource.helper;
import com.alibaba.fastjson.JSONObject;
/**
* Created by yoho on 2015/11/7.
*/
public interface MakeUrlService {
String GUANG_CHANNEL_ACTION = "go.guangchannel";
String BRAND_ACTION = "go.brand";
String PRODUCT_DETAIL_ACTION = "go.productDetail";
String COUPON_ACTION = "go.coupon";
String FAV_ACTION = "go.fav";
String LIST_ACTION = "go.list";
String SHARE_ACTION = "go.share";
String H5_ACTION = "go.h5";
String ACTIVITY_ACTION = "go.activity";
String GENDER_ACTION = "go.gender";
String HOME_ACTION = "go.home";
String SHOP_ACTION = "go.shop";
/**
* 处理链接
*
* @param action
* @param url
* @param clientType
* @return
*/
String url(String action, String url, String clientType);
/**
* 处理链接
*
* @param urlData {
* "action":"go.brand",
* "url":"http://www.yohobuy.com",
* "params":{}
* }
* @param clientType
* @return
*/
String makeUrl(JSONObject urlData, String clientType);
/**
* 处理链接,增加默认值
* @param urlData
* @param clientType
* @return
*/
String makeUrl(JSONObject urlData, String clientType, String defaultUrl) ;
/**
* 处理链接
*
* @param action
* @param url
* @param params
* @param clientType
* @return
*/
String makeUrl(String action, String url, JSONObject params, String clientType);
/**
* 处理链接。在url后面追加openby:yohobuy={params}
*
* @param url
* @param params
* @return
*/
String make(String url, JSONObject params);
}