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 1010public class WxMenuButton implements Serializable {
1111 private static final long serialVersionUID = -1070939403109776555L ;
1212
13+ /**
14+ * <pre>
15+ * 菜单的响应动作类型:
16+ * view表示网页类型,
17+ * click表示点击类型,
18+ * miniprogram表示小程序类型
19+ * </pre>
20+ */
1321 private String type ;
22+
23+ /**
24+ * 菜单标题,不超过16个字节,子菜单不超过60个字节
25+ */
1426 private String name ;
27+
28+ /**
29+ * <pre>
30+ * 菜单KEY值,用于消息接口推送,不超过128字节
31+ * click等点击类型必须
32+ * </pre>
33+ */
1534 private String key ;
35+
36+ /**
37+ * <pre>
38+ * 网页链接,用户点击菜单可打开链接,不超过1024字节。type为miniprogram时,不支持小程序的老版本客户端将打开本url。
39+ * view、miniprogram类型必须
40+ * </pre>
41+ */
1642 private String url ;
1743
44+ /**
45+ * <pre>
46+ * 调用新增永久素材接口返回的合法media_id
47+ * media_id类型和view_limited类型必须
48+ * </pre>
49+ */
1850 @ SerializedName ("media_id" )
1951 private String mediaId ;
2052
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+
2171 @ SerializedName ("sub_button" )
2272 private List <WxMenuButton > subButtons = new ArrayList <>();
2373
@@ -73,4 +123,20 @@ public String getMediaId() {
73123 public void setMediaId (String mediaId ) {
74124 this .mediaId = mediaId ;
75125 }
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+ }
76142}
You can’t perform that action at this time.
0 commit comments