🎨 优化代码,部分类增加序列化接口实现

This commit is contained in:
Binary Wang 2020-11-14 15:22:01 +08:00
parent 30aca49ab9
commit 6d556f8b1d
2 changed files with 20 additions and 3 deletions

View File

@ -3,6 +3,8 @@ package cn.binarywang.wx.miniapp.bean;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import java.io.Serializable;
/** /**
* <pre> * <pre>
* 参考文档 https://developers.weixin.qq.com/miniprogram/dev/api-backend/templateMessage.send.html * 参考文档 https://developers.weixin.qq.com/miniprogram/dev/api-backend/templateMessage.send.html
@ -13,7 +15,9 @@ import lombok.NoArgsConstructor;
*/ */
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public class WxMaTemplateData { public class WxMaTemplateData implements Serializable {
private static final long serialVersionUID = 855214313056578490L;
private String name; private String name;
private String value; private String value;
private String color; private String color;

View File

@ -13,11 +13,14 @@ import java.util.List;
* <pre> * <pre>
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e_transactions.shtml * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e_transactions.shtml
* </pre> * </pre>
*
* @author cloudX
*/ */
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public class PartnerTransactionsRequest implements Serializable { public class PartnerTransactionsRequest implements Serializable {
private static final long serialVersionUID = -1550405819444680465L; private static final long serialVersionUID = -1550405819444680465L;
/** /**
* <pre> * <pre>
* 字段名服务商公众号ID * 字段名服务商公众号ID
@ -225,6 +228,7 @@ public class PartnerTransactionsRequest implements Serializable {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public static class Discount implements Serializable { public static class Discount implements Serializable {
private static final long serialVersionUID = 1090134053810201492L;
/** /**
* <pre> * <pre>
@ -254,7 +258,7 @@ public class PartnerTransactionsRequest implements Serializable {
* </pre> * </pre>
*/ */
@SerializedName(value = "invoice_id") @SerializedName(value = "invoice_id")
private Integer invoiceId; private String invoiceId;
/** /**
* <pre> * <pre>
@ -274,6 +278,7 @@ public class PartnerTransactionsRequest implements Serializable {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public static class Amount implements Serializable { public static class Amount implements Serializable {
private static final long serialVersionUID = -4967636398225864273L;
/** /**
* <pre> * <pre>
@ -308,6 +313,7 @@ public class PartnerTransactionsRequest implements Serializable {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public static class Payer implements Serializable { public static class Payer implements Serializable {
private static final long serialVersionUID = -3946401119476159971L;
/** /**
* <pre> * <pre>
@ -341,7 +347,9 @@ public class PartnerTransactionsRequest implements Serializable {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public static class SettleInfo implements Serializable{ public static class SettleInfo implements Serializable {
private static final long serialVersionUID = 4438958789491671746L;
/** /**
* <pre> * <pre>
* 字段名是否指定分账 * 字段名是否指定分账
@ -378,6 +386,7 @@ public class PartnerTransactionsRequest implements Serializable {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public static class GoodsDetail implements Serializable { public static class GoodsDetail implements Serializable {
private static final long serialVersionUID = -2574001236925022932L;
/** /**
* <pre> * <pre>
@ -453,6 +462,8 @@ public class PartnerTransactionsRequest implements Serializable {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public static class SceneInfo implements Serializable { public static class SceneInfo implements Serializable {
private static final long serialVersionUID = 4678263124015070957L;
/** /**
* <pre> * <pre>
* 字段名商户端设备号 * 字段名商户端设备号
@ -514,6 +525,7 @@ public class PartnerTransactionsRequest implements Serializable {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public static class H5Info implements Serializable { public static class H5Info implements Serializable {
private static final long serialVersionUID = -6865738707329486532L;
/** /**
* <pre> * <pre>
@ -593,6 +605,7 @@ public class PartnerTransactionsRequest implements Serializable {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public static class StoreInfo implements Serializable { public static class StoreInfo implements Serializable {
private static final long serialVersionUID = -8002411737407580701L;
/** /**
* <pre> * <pre>