File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/menu Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments