Skip to content

Commit

Permalink
🎨 代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Oct 31, 2021
1 parent e343159 commit 5f1aa6f
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -14,8 +15,8 @@
* @author huangxiaoming
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpTpAdmin extends WxCpBaseResp {

private static final long serialVersionUID = -5028321625140879571L;

@SerializedName("admin")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

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 WxCpTpUserDetail extends WxCpBaseResp {

private static final long serialVersionUID = -5028321625140879571L;
/**
* 用户所属企业的corpid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

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;

/**
* 「联系我」方式 处理结果
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpContactWayResult extends WxCpBaseResp {
private static final long serialVersionUID = -2612867517869192015L;
@SerializedName("config_id")
private String configId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<CommentLikeItem> commentList;
@SerializedName("like_list")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
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;

/**
* 企业发表内容到客户的朋友圈 获取客户朋友圈发表时选择的可见范围
*
* @author leiin
* @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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

Expand All @@ -10,6 +11,7 @@
* @author element
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpApprovalApplier extends WxCpOperator implements Serializable {

private static final long serialVersionUID = -8974662568286821271L;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 5f1aa6f

Please sign in to comment.