Skip to content

Commit c65cd34

Browse files
committed
WxMpSelfMenuInfo的几个内部静态类增加Serializable接口实现
1 parent 4f1c66e commit c65cd34

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public void setButtons(List<WxMpSelfMenuButton> buttons) {
3636
this.buttons = buttons;
3737
}
3838

39-
public static class WxMpSelfMenuButton {
39+
public static class WxMpSelfMenuButton implements Serializable {
40+
private static final long serialVersionUID = -4426602953309048341L;
41+
4042
/**
4143
* <pre>
4244
* 菜单的类型,公众平台官网上能够设置的菜单类型有view(跳转网页)、text(返回文本,下同)、img、photo、video、voice。
@@ -149,7 +151,9 @@ public void setNewsInfo(NewsInfo newsInfo) {
149151
this.newsInfo = newsInfo;
150152
}
151153

152-
public static class SubButtons {
154+
public static class SubButtons implements Serializable {
155+
private static final long serialVersionUID = 1763350658575521079L;
156+
153157
@SerializedName("list")
154158
private List<WxMpSelfMenuButton> subButtons = new ArrayList<>();
155159

@@ -167,7 +171,9 @@ public void setSubButtons(List<WxMpSelfMenuButton> subButtons) {
167171
}
168172
}
169173

170-
public static class NewsInfo {
174+
public static class NewsInfo implements Serializable {
175+
private static final long serialVersionUID = 3449813746347818457L;
176+
171177
@SerializedName("list")
172178
private List<NewsInButton> news = new ArrayList<>();
173179

@@ -184,7 +190,9 @@ public void setNews(List<NewsInButton> news) {
184190
this.news = news;
185191
}
186192

187-
public static class NewsInButton {
193+
public static class NewsInButton implements Serializable {
194+
private static final long serialVersionUID = 8701455967664912972L;
195+
188196
/**
189197
* 图文消息的标题
190198
*/

0 commit comments

Comments
 (0)