File tree Expand file tree Collapse file tree 1 file changed +66
-0
lines changed
weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/menu Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change 10
10
public class WxMenuButton implements Serializable {
11
11
private static final long serialVersionUID = -1070939403109776555L ;
12
12
13
+ /**
14
+ * <pre>
15
+ * 菜单的响应动作类型:
16
+ * view表示网页类型,
17
+ * click表示点击类型,
18
+ * miniprogram表示小程序类型
19
+ * </pre>
20
+ */
13
21
private String type ;
22
+
23
+ /**
24
+ * 菜单标题,不超过16个字节,子菜单不超过60个字节
25
+ */
14
26
private String name ;
27
+
28
+ /**
29
+ * <pre>
30
+ * 菜单KEY值,用于消息接口推送,不超过128字节
31
+ * click等点击类型必须
32
+ * </pre>
33
+ */
15
34
private String key ;
35
+
36
+ /**
37
+ * <pre>
38
+ * 网页链接,用户点击菜单可打开链接,不超过1024字节。type为miniprogram时,不支持小程序的老版本客户端将打开本url。
39
+ * view、miniprogram类型必须
40
+ * </pre>
41
+ */
16
42
private String url ;
17
43
44
+ /**
45
+ * <pre>
46
+ * 调用新增永久素材接口返回的合法media_id
47
+ * media_id类型和view_limited类型必须
48
+ * </pre>
49
+ */
18
50
@ SerializedName ("media_id" )
19
51
private String mediaId ;
20
52
53
+ /**
54
+ * <pre>
55
+ * 小程序的appid
56
+ * miniprogram类型必须
57
+ * </pre>
58
+ */
59
+ @ SerializedName ("appid" )
60
+ private String appiId ;
61
+
62
+ /**
63
+ * <pre>
64
+ * 小程序的页面路径
65
+ * miniprogram类型必须
66
+ * </pre>
67
+ */
68
+ @ SerializedName ("pagepath" )
69
+ private String pagePath ;
70
+
21
71
@ SerializedName ("sub_button" )
22
72
private List <WxMenuButton > subButtons = new ArrayList <>();
23
73
@@ -73,4 +123,20 @@ public String getMediaId() {
73
123
public void setMediaId (String mediaId ) {
74
124
this .mediaId = mediaId ;
75
125
}
126
+
127
+ public String getAppiId () {
128
+ return appiId ;
129
+ }
130
+
131
+ public void setAppiId (String appiId ) {
132
+ this .appiId = appiId ;
133
+ }
134
+
135
+ public String getPagePath () {
136
+ return pagePath ;
137
+ }
138
+
139
+ public void setPagePath (String pagePath ) {
140
+ this .pagePath = pagePath ;
141
+ }
76
142
}
You can’t perform that action at this time.
0 commit comments