@@ -43,13 +43,13 @@ public static class WxMpSelfMenuButton implements Serializable {
43
43
@ SerializedName ("type" )
44
44
private String type ;
45
45
/**
46
- * 菜单名称
46
+ * 菜单名称.
47
47
*/
48
48
@ SerializedName ("name" )
49
49
private String name ;
50
50
/**
51
51
* <pre>
52
- * 对于不同的菜单类型,value的值意义不同。
52
+ * 对于不同的菜单类型,value的值意义不同.
53
53
* 官网上设置的自定义菜单:
54
54
* <li>Text:保存文字到value;
55
55
* <li>Img、voice:保存mediaID到value;
@@ -58,29 +58,52 @@ public static class WxMpSelfMenuButton implements Serializable {
58
58
* <li>View:保存链接到url。</li>
59
59
*
60
60
* 使用API设置的自定义菜单:
61
- * <li>click、scancode_push、scancode_waitmsg、pic_sysphoto、pic_photo_or_album、 pic_weixin、location_select:保存值到key;
61
+ * <li>click、scancode_push、scancode_waitmsg、pic_sysphoto、pic_photo_or_album、pic_weixin、location_select:保存值到key;
62
62
* <li>view:保存链接到url
63
63
* </pre>
64
64
*/
65
65
@ SerializedName ("key" )
66
66
private String key ;
67
67
/**
68
+ * .
69
+ *
68
70
* @see #key
69
71
*/
70
72
@ SerializedName ("url" )
71
73
private String url ;
74
+
72
75
/**
76
+ * .
77
+ *
73
78
* @see #key
74
79
*/
75
80
@ SerializedName ("value" )
76
81
private String value ;
82
+
83
+ /**
84
+ * <pre>
85
+ * 小程序的appid.
86
+ * miniprogram类型必须
87
+ * </pre>
88
+ */
89
+ @ SerializedName ("appid" )
90
+ private String appId ;
91
+
77
92
/**
78
- * 子菜单信息
93
+ * <pre>
94
+ * 小程序的页面路径.
95
+ * miniprogram类型必须
96
+ * </pre>
97
+ */
98
+ @ SerializedName ("pagepath" )
99
+ private String pagePath ;
100
+ /**
101
+ * 子菜单信息.
79
102
*/
80
103
@ SerializedName ("sub_button" )
81
104
private SubButtons subButtons ;
82
105
/**
83
- * 图文消息的信息
106
+ * 图文消息的信息.
84
107
*/
85
108
@ SerializedName ("news_info" )
86
109
private NewsInfo newsInfo ;
@@ -116,42 +139,41 @@ public String toString() {
116
139
}
117
140
118
141
@ Data
119
- public static class NewsInButton implements Serializable {
142
+ public static class NewsInButton implements Serializable {
120
143
private static final long serialVersionUID = 8701455967664912972L ;
121
144
122
145
/**
123
- * 图文消息的标题
146
+ * 图文消息的标题.
124
147
*/
125
148
@ SerializedName ("title" )
126
149
private String title ;
127
150
/**
128
- * 摘要
151
+ * 摘要.
129
152
*/
130
153
@ SerializedName ("digest" )
131
154
private String digest ;
132
155
/**
133
- * 作者
156
+ * 作者.
134
157
*/
135
158
@ SerializedName ("author" )
136
159
private String author ;
137
160
/**
138
- * show_cover
139
- * 是否显示封面,0为不显示,1为显示
161
+ * 是否显示封面,0为不显示,1为显示.
140
162
*/
141
163
@ SerializedName ("show_cover" )
142
164
private Integer showCover ;
143
165
/**
144
- * 封面图片的URL
166
+ * 封面图片的URL.
145
167
*/
146
168
@ SerializedName ("cover_url" )
147
169
private String coverUrl ;
148
170
/**
149
- * 正文的URL
171
+ * 正文的URL.
150
172
*/
151
173
@ SerializedName ("content_url" )
152
174
private String contentUrl ;
153
175
/**
154
- * 原文的URL,若置空则无查看原文入口
176
+ * 原文的URL,若置空则无查看原文入口.
155
177
*/
156
178
@ SerializedName ("source_url" )
157
179
private String sourceUrl ;
@@ -160,7 +182,6 @@ public static class NewsInButton implements Serializable {
160
182
public String toString () {
161
183
return WxMpGsonBuilder .create ().toJson (this );
162
184
}
163
-
164
185
}
165
186
}
166
187
}
0 commit comments