From 5f1aa6fc97a8299455816c9581762c742b36c086 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 1 Nov 2021 00:18:42 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java | 3 ++- .../java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java | 3 ++- .../java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java | 3 +++ .../weixin/cp/bean/external/WxCpAddMomentResult.java | 3 +++ .../weixin/cp/bean/external/WxCpContactWayResult.java | 3 +++ .../weixin/cp/bean/external/WxCpGetMomentComments.java | 3 +++ .../weixin/cp/bean/external/WxCpGetMomentCustomerList.java | 7 ++++++- .../chanjar/weixin/cp/bean/external/WxCpGetMomentList.java | 3 +++ .../weixin/cp/bean/external/WxCpGetMomentSendResult.java | 3 +++ .../chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java | 3 +++ .../weixin/cp/bean/external/WxCpGetMomentTaskResult.java | 3 +++ .../me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java | 2 ++ .../java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java | 4 ++++ 13 files changed, 40 insertions(+), 3 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java index 2aa89d2158..5d77c975d5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import me.chanjar.weixin.common.util.json.WxGsonBuilder; @@ -14,8 +15,8 @@ * @author huangxiaoming */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpTpAdmin extends WxCpBaseResp { - private static final long serialVersionUID = -5028321625140879571L; @SerializedName("admin") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java index 440e7b4df5..c949b0a1ba 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** @@ -9,8 +10,8 @@ * @author huangxiaoming */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpTpUserDetail extends WxCpBaseResp { - private static final long serialVersionUID = -5028321625140879571L; /** * 用户所属企业的corpid diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java index 6739082faf..0138b2a9d9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java @@ -2,12 +2,15 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** * @author huangxiaoming */ + @Data +@EqualsAndHashCode(callSuper = true) public class WxCpTpUserInfo extends WxCpBaseResp { private static final long serialVersionUID = -5028321625140879571L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java index 3cfd66bb35..8c67c814fc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; @@ -12,7 +13,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpAddMomentResult extends WxCpBaseResp { + private static final long serialVersionUID = -7212260280504857210L; @SerializedName("jobid") private String jobId; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java index 6bb9c41398..0a49719a95 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; @@ -9,7 +10,9 @@ * 「联系我」方式 处理结果 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpContactWayResult extends WxCpBaseResp { + private static final long serialVersionUID = -2612867517869192015L; @SerializedName("config_id") private String configId; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java index 0cf49adcaa..6976702612 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import me.chanjar.weixin.cp.bean.WxCpBaseResp; @@ -15,7 +16,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentComments extends WxCpBaseResp { + private static final long serialVersionUID = -9056664072546234965L; @SerializedName("comment_list") private List commentList; @SerializedName("like_list") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java index 795c9520d1..0d144da14f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java @@ -1,12 +1,14 @@ package me.chanjar.weixin.cp.bean.external; import com.google.gson.annotations.SerializedName; -import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.external.moment.CustomerItem; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import java.util.List; + /** * 企业发表内容到客户的朋友圈 获取客户朋友圈发表时选择的可见范围 * @@ -14,7 +16,10 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentCustomerList extends WxCpBaseResp { + private static final long serialVersionUID = -8792120670063917097L; + @SerializedName("next_cursor") private String nextCursor; @SerializedName("customer_list") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java index 6f4d07288e..6ba154df83 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.external.moment.MomentInfo; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; @@ -14,7 +15,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentList extends WxCpBaseResp { + private static final long serialVersionUID = 106159971765109008L; @SerializedName("next_cursor") private String nextCursor; @SerializedName("moment_list") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java index c7a6f48524..38cd89a454 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.external.moment.CustomerItem; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; @@ -14,7 +15,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentSendResult extends WxCpBaseResp { + private static final long serialVersionUID = -5782811995184523379L; @SerializedName("next_cursor") private String nextCursor; @SerializedName("customer_list") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java index 041d5e8029..aa45bec4ef 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import me.chanjar.weixin.cp.bean.WxCpBaseResp; @@ -15,7 +16,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentTask extends WxCpBaseResp { + private static final long serialVersionUID = 5621905029624794129L; @SerializedName("next_cursor") private String nextCursor; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java index f7ca6d8f38..019e7fdf1d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import me.chanjar.weixin.cp.bean.WxCpBaseResp; @@ -16,7 +17,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentTaskResult extends WxCpBaseResp { + private static final long serialVersionUID = 2515140928288915077L; private Integer status; private String type; private TaskResult result; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java index b9b1af3c3a..7d372cdfcf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import java.io.Serializable; @@ -10,6 +11,7 @@ * @author element */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpApprovalApplier extends WxCpOperator implements Serializable { private static final long serialVersionUID = -8974662568286821271L; diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java index faa56bec34..a3d9e7af07 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java @@ -1,9 +1,13 @@ package me.chanjar.weixin.open.bean.ma; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.open.bean.result.WxOpenResult; @Data +@EqualsAndHashCode(callSuper = true) public class WxMaScheme extends WxOpenResult { + private static final long serialVersionUID = 6099475183322341647L; + private String openlink; }