Przeglądaj źródła

:art: 部分bean类实现序列化接口

Binary Wang 3 lat temu
rodzic
commit
e15181867f

+ 5 - 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillRequest.java

@@ -3,8 +3,11 @@ package com.github.binarywang.wxpay.bean.ecommerce;
 import com.google.gson.annotations.SerializedName;
 import lombok.*;
 
+import java.io.Serializable;
+
 /**
  * 资金账单请求
+ *
  * @author: f00lish
  * @date: 2020/09/28
  */
@@ -13,7 +16,8 @@ import lombok.*;
 @ToString
 @NoArgsConstructor(access = AccessLevel.PRIVATE)
 @AllArgsConstructor(access = AccessLevel.PRIVATE)
-public class FundBillRequest {
+public class FundBillRequest implements Serializable {
+  private static final long serialVersionUID = 686005394786326248L;
 
   /**
    * <pre>

+ 5 - 2
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillResult.java

@@ -3,8 +3,11 @@ package com.github.binarywang.wxpay.bean.ecommerce;
 import com.google.gson.annotations.SerializedName;
 import lombok.*;
 
+import java.io.Serializable;
+
 /**
  * 资金账单结果
+ *
  * @author: f00lish
  * @date: 2020/09/28
  */
@@ -13,7 +16,8 @@ import lombok.*;
 @ToString
 @NoArgsConstructor(access = AccessLevel.PRIVATE)
 @AllArgsConstructor(access = AccessLevel.PRIVATE)
-public class FundBillResult {
+public class FundBillResult implements Serializable {
+  private static final long serialVersionUID = 4008480977464421822L;
 
   /**
    * <pre>
@@ -30,7 +34,6 @@ public class FundBillResult {
   private int downloadBillCount;
 
 
-
   /**
    * <pre>
    * 字段名:下载信息明细

+ 7 - 3
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillRequest.java

@@ -3,17 +3,21 @@ package com.github.binarywang.wxpay.bean.ecommerce;
 import com.google.gson.annotations.SerializedName;
 import lombok.*;
 
+import java.io.Serializable;
+
 /**
  * 交易账单请求
- * @author: f00lish
- * @date: 2020/09/28
+ *
+ * @author f00lish
+ * @date 2020/09/28
  */
 @Data
 @Builder
 @ToString
 @NoArgsConstructor(access = AccessLevel.PRIVATE)
 @AllArgsConstructor(access = AccessLevel.PRIVATE)
-public class TradeBillRequest {
+public class TradeBillRequest implements Serializable {
+  private static final long serialVersionUID = 9120047088908567632L;
 
   /**
    * <pre>

+ 5 - 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillResult.java

@@ -3,8 +3,11 @@ package com.github.binarywang.wxpay.bean.ecommerce;
 import com.google.gson.annotations.SerializedName;
 import lombok.*;
 
+import java.io.Serializable;
+
 /**
  * 交易账单结果
+ *
  * @author: f00lish
  * @date: 2020/09/28
  */
@@ -13,7 +16,8 @@ import lombok.*;
 @ToString
 @NoArgsConstructor(access = AccessLevel.PRIVATE)
 @AllArgsConstructor(access = AccessLevel.PRIVATE)
-public class TradeBillResult {
+public class TradeBillResult implements Serializable {
+  private static final long serialVersionUID = 6928601792206656068L;
 
   /**
    * <pre>