Skip to content

Commit 4378228

Browse files
committed
🎨 #1355 小程序订阅消息类WxMaSubscribeMessage.Data类实现序列化接口
1 parent 7a7a920 commit 4378228

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMessage.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public WxMaSubscribeMessage addData(Data datum) {
6565
if (this.data == null) {
6666
this.data = new ArrayList<>();
6767
}
68+
6869
this.data.add(datum);
6970

7071
return this;
@@ -77,7 +78,9 @@ public String toJson() {
7778
@lombok.Data
7879
@NoArgsConstructor
7980
@AllArgsConstructor
80-
public static class Data {
81+
public static class Data implements Serializable {
82+
private static final long serialVersionUID = 1L;
83+
8184
private String name;
8285
private String value;
8386
}

0 commit comments

Comments
 (0)