Skip to content

Commit 7e2dbe4

Browse files
author
ablecao
committed
更新下注释说明
1 parent fa63442 commit 7e2dbe4

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

src/main/java/com/tencent/xinge/bean/AtyAttr.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
import com.fasterxml.jackson.annotation.JsonInclude;
44
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import io.swagger.annotations.ApiModelProperty;
56

67
@JsonInclude(JsonInclude.Include.NON_NULL)
78
public class AtyAttr {
89

910
@JsonProperty(value = "if", required = true, defaultValue = "0")
11+
@ApiModelProperty(notes = "Intent的Flag属性")
1012
private int atyAttrIntentFlag = 0;
1113

12-
1314
@JsonProperty(value = "pf", required = true, defaultValue = "0")
15+
@ApiModelProperty(notes = "PendingIntent的Flag属性")
1416
private int atyAttrPendingIntentFlag = 0;
1517

1618
public int getIf() {

src/main/java/com/tencent/xinge/bean/Browser.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
import com.fasterxml.jackson.annotation.JsonInclude;
44
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import io.swagger.annotations.ApiModelProperty;
56

67
@JsonInclude(JsonInclude.Include.NON_NULL)
78
public class Browser {
89

910
@JsonProperty(value = "url", required = true)
11+
@ApiModelProperty(notes = "仅支持http、https")
1012
private String url="";
1113

1214
@JsonProperty(value = "confirm", required = true)
15+
@ApiModelProperty(notes = "是否需要用户确认")
1316
private int confirm;
1417

1518
public String getUrl() {

src/main/java/com/tencent/xinge/bean/ClickAction.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.fasterxml.jackson.annotation.JsonInclude;
44
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import io.swagger.annotations.ApiModelProperty;
56
import org.json.JSONObject;
67

78
@JsonInclude(JsonInclude.Include.NON_NULL)
@@ -12,6 +13,7 @@ public class ClickAction {
1213
public static final int TYPE_INTENT = 3;
1314

1415
@JsonProperty(value = "action_type", required = true, defaultValue = "1")
16+
@ApiModelProperty(notes = "动作类型,1,打开activity或app本身;2,打开浏览器;3,打开Intent")
1517
private int action_type = 1;
1618

1719
@JsonProperty(value = "activity", required = true, defaultValue = "")
@@ -21,9 +23,11 @@ public class ClickAction {
2123
private Browser browser;
2224

2325
@JsonProperty(value = "aty_attr", required = true)
26+
@ApiModelProperty(notes = "activity属性,只针对action_type=1的情况")
2427
private AtyAttr aty_attr;
2528

2629
@JsonProperty(value = "intent", required = true)
30+
@ApiModelProperty(notes = "客户端 Android SDK版本需要大于等于3.2.3,然后在客户端的intent配置data标签,并设置scheme属性")
2731
private String intent;
2832

2933
public int getAction_type() {

src/main/java/com/tencent/xinge/bean/RetCode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
public enum RetCode {
44
SUCCESS(0, "成功"),
5-
UNKNOWN_ERROR(10000, "未知异常"),
6-
NETWORK_TIMEOUT(10001, "超时失败,请重试"),
5+
UNKNOWN_ERROR(10100, "发送provider失败l5、链接失败"),
6+
NETWORK_TIMEOUT(10101, "发送provider 超时"),
77

88
;
99

0 commit comments

Comments
 (0)