Skip to content

Commit d0d83a7

Browse files
committed
#1138 获取自定义菜单配置接口结果中增加小程序相关的属性
1 parent a5ccd0a commit d0d83a7

File tree

1 file changed

+36
-15
lines changed

1 file changed

+36
-15
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/menu/WxMpSelfMenuInfo.java

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ public static class WxMpSelfMenuButton implements Serializable {
4343
@SerializedName("type")
4444
private String type;
4545
/**
46-
* 菜单名称
46+
* 菜单名称.
4747
*/
4848
@SerializedName("name")
4949
private String name;
5050
/**
5151
* <pre>
52-
* 对于不同的菜单类型,value的值意义不同
52+
* 对于不同的菜单类型,value的值意义不同.
5353
* 官网上设置的自定义菜单:
5454
* <li>Text:保存文字到value;
5555
* <li>Img、voice:保存mediaID到value;
@@ -58,29 +58,52 @@ public static class WxMpSelfMenuButton implements Serializable {
5858
* <li>View:保存链接到url。</li>
5959
*
6060
* 使用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;
6262
* <li>view:保存链接到url
6363
* </pre>
6464
*/
6565
@SerializedName("key")
6666
private String key;
6767
/**
68+
* .
69+
*
6870
* @see #key
6971
*/
7072
@SerializedName("url")
7173
private String url;
74+
7275
/**
76+
* .
77+
*
7378
* @see #key
7479
*/
7580
@SerializedName("value")
7681
private String value;
82+
83+
/**
84+
* <pre>
85+
* 小程序的appid.
86+
* miniprogram类型必须
87+
* </pre>
88+
*/
89+
@SerializedName("appid")
90+
private String appId;
91+
7792
/**
78-
* 子菜单信息
93+
* <pre>
94+
* 小程序的页面路径.
95+
* miniprogram类型必须
96+
* </pre>
97+
*/
98+
@SerializedName("pagepath")
99+
private String pagePath;
100+
/**
101+
* 子菜单信息.
79102
*/
80103
@SerializedName("sub_button")
81104
private SubButtons subButtons;
82105
/**
83-
* 图文消息的信息
106+
* 图文消息的信息.
84107
*/
85108
@SerializedName("news_info")
86109
private NewsInfo newsInfo;
@@ -116,42 +139,41 @@ public String toString() {
116139
}
117140

118141
@Data
119-
public static class NewsInButton implements Serializable {
142+
public static class NewsInButton implements Serializable {
120143
private static final long serialVersionUID = 8701455967664912972L;
121144

122145
/**
123-
* 图文消息的标题
146+
* 图文消息的标题.
124147
*/
125148
@SerializedName("title")
126149
private String title;
127150
/**
128-
* 摘要
151+
* 摘要.
129152
*/
130153
@SerializedName("digest")
131154
private String digest;
132155
/**
133-
* 作者
156+
* 作者.
134157
*/
135158
@SerializedName("author")
136159
private String author;
137160
/**
138-
* show_cover
139-
* 是否显示封面,0为不显示,1为显示
161+
* 是否显示封面,0为不显示,1为显示.
140162
*/
141163
@SerializedName("show_cover")
142164
private Integer showCover;
143165
/**
144-
* 封面图片的URL
166+
* 封面图片的URL.
145167
*/
146168
@SerializedName("cover_url")
147169
private String coverUrl;
148170
/**
149-
* 正文的URL
171+
* 正文的URL.
150172
*/
151173
@SerializedName("content_url")
152174
private String contentUrl;
153175
/**
154-
* 原文的URL,若置空则无查看原文入口
176+
* 原文的URL,若置空则无查看原文入口.
155177
*/
156178
@SerializedName("source_url")
157179
private String sourceUrl;
@@ -160,7 +182,6 @@ public static class NewsInButton implements Serializable {
160182
public String toString() {
161183
return WxMpGsonBuilder.create().toJson(this);
162184
}
163-
164185
}
165186
}
166187
}

0 commit comments

Comments
 (0)