🎨 代码优化

This commit is contained in:
Binary Wang 2021-11-01 00:18:42 +08:00
parent e343159e3a
commit 5f1aa6fc97
13 changed files with 40 additions and 3 deletions

View File

@ -2,6 +2,7 @@ package me.chanjar.weixin.cp.bean;
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 @@ import java.util.List;
* @author huangxiaoming
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpTpAdmin extends WxCpBaseResp {
private static final long serialVersionUID = -5028321625140879571L;
@SerializedName("admin")

View File

@ -2,6 +2,7 @@ package me.chanjar.weixin.cp.bean;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
/**
@ -9,8 +10,8 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
* @author huangxiaoming
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpTpUserDetail extends WxCpBaseResp {
private static final long serialVersionUID = -5028321625140879571L;
/**
* 用户所属企业的corpid

View File

@ -2,12 +2,15 @@ package me.chanjar.weixin.cp.bean;
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;

View File

@ -2,6 +2,7 @@ package me.chanjar.weixin.cp.bean.external;
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 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
* @date 2021-10-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpAddMomentResult extends WxCpBaseResp {
private static final long serialVersionUID = -7212260280504857210L;
@SerializedName("jobid")
private String jobId;

View File

@ -2,6 +2,7 @@ package me.chanjar.weixin.cp.bean.external;
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 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
* 联系我方式 处理结果
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpContactWayResult extends WxCpBaseResp {
private static final long serialVersionUID = -2612867517869192015L;
@SerializedName("config_id")
private String configId;

View File

@ -3,6 +3,7 @@ package me.chanjar.weixin.cp.bean.external;
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 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
* @date 2021-10-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpGetMomentComments extends WxCpBaseResp {
private static final long serialVersionUID = -9056664072546234965L;
@SerializedName("comment_list")
private List<CommentLikeItem> commentList;
@SerializedName("like_list")

View File

@ -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 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
* @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")

View File

@ -3,6 +3,7 @@ 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.MomentInfo;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
@ -14,7 +15,9 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
* @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")

View File

@ -3,6 +3,7 @@ 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;
@ -14,7 +15,9 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
* @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")

View File

@ -3,6 +3,7 @@ package me.chanjar.weixin.cp.bean.external;
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 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
* @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;

View File

@ -2,6 +2,7 @@ package me.chanjar.weixin.cp.bean.external;
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 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
* @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;

View File

@ -2,6 +2,7 @@ package me.chanjar.weixin.cp.bean.oa;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
@ -10,6 +11,7 @@ import java.io.Serializable;
* @author element
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpApprovalApplier extends WxCpOperator implements Serializable {
private static final long serialVersionUID = -8974662568286821271L;

View File

@ -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;
}