Skip to content

Commit aca8dba

Browse files
committed
🎨 优化规范部分代码
1 parent bd100bf commit aca8dba

File tree

11 files changed

+863
-854
lines changed

11 files changed

+863
-854
lines changed

weixin-java-miniapp/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
<dependency>
8888
<groupId>com.github.jedis-lock</groupId>
8989
<artifactId>jedis-lock</artifactId>
90-
<version>1.0.0</version>
9190
<optional>true</optional>
9291
</dependency>
9392
<dependency>

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/ApplymentStateQueryResult.java

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import lombok.NoArgsConstructor;
99
import lombok.experimental.Accessors;
1010

11+
import java.io.Serializable;
1112
import java.util.List;
1213

1314
/**
@@ -18,70 +19,69 @@
1819
@NoArgsConstructor
1920
@AllArgsConstructor
2021
@Accessors(chain = true)
21-
public class ApplymentStateQueryResult {
22+
public class ApplymentStateQueryResult implements Serializable {
23+
private static final long serialVersionUID = 6539090917423486409L;
24+
/**
25+
* 业务申请编号
26+
*/
27+
@SerializedName("business_code")
28+
private String businessCode;
29+
/**
30+
* 微信支付申请单号
31+
*/
32+
@SerializedName("applyment_id")
33+
private String applymentId;
34+
/**
35+
* 特约商户号
36+
*/
37+
@SerializedName("sub_mchid")
38+
private String subMchid;
39+
/**
40+
* 超级管理员签约链接
41+
*/
42+
@SerializedName("sign_url")
43+
private String signUrl;
2244

23-
/**
24-
* 业务申请编号
25-
*/
26-
@SerializedName("business_code")
27-
private String businessCode;
28-
/**
29-
* 微信支付申请单号
30-
*/
31-
@SerializedName("applyment_id")
32-
private String applymentId;
33-
/**
34-
* 特约商户号
35-
*/
36-
@SerializedName("sub_mchid")
37-
private String subMchid;
38-
/**
39-
* 超级管理员签约链接
40-
*/
41-
@SerializedName("sign_url")
42-
private String signUrl;
45+
/**
46+
* 申请单状态
47+
*/
48+
@SerializedName("applyment_state")
49+
private ApplymentStateEnum applymentState;
50+
/**
51+
* 申请状态描述
52+
*/
53+
@SerializedName("applyment_state_msg")
54+
private String applymentStateMsg;
55+
/**
56+
* 驳回原因详情
57+
*/
58+
@SerializedName("audit_detail")
59+
private List<AuditDetail> auditDetail;
4360

61+
/**
62+
* 驳回原因详情
63+
*/
64+
@Data
65+
@Builder
66+
@NoArgsConstructor
67+
@AllArgsConstructor
68+
@Accessors(chain = true)
69+
public static class AuditDetail {
4470
/**
45-
* 申请单状态
46-
*
71+
* 字段名
4772
*/
48-
@SerializedName("applyment_state")
49-
private ApplymentStateEnum applymentState;
73+
@SerializedName("field")
74+
private String field;
5075
/**
51-
* 申请状态描述
76+
* 字段名称
5277
*/
53-
@SerializedName("applyment_state_msg")
54-
private String applymentStateMsg;
55-
/**
56-
* 驳回原因详情
57-
*/
58-
@SerializedName("audit_detail")
59-
private List<AuditDetail> auditDetail;
60-
78+
@SerializedName("field_name")
79+
private String fieldName;
6180
/**
62-
* 驳回原因详情
81+
* 驳回原因
6382
*/
64-
@Data
65-
@Builder
66-
@NoArgsConstructor
67-
@AllArgsConstructor
68-
@Accessors(chain = true)
69-
public static class AuditDetail {
70-
/**
71-
* 字段名
72-
*/
73-
@SerializedName("field")
74-
private String field;
75-
/**
76-
* 字段名称
77-
*/
78-
@SerializedName("field_name")
79-
private String fieldName;
80-
/**
81-
* 驳回原因
82-
*/
83-
@SerializedName("reject_reason")
84-
private String rejectReason;
83+
@SerializedName("reject_reason")
84+
private String rejectReason;
8585

86-
}
86+
}
8787
}

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/ModifySettlementRequest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import lombok.experimental.Accessors;
1010
import com.github.binarywang.wxpay.v3.SpecEncrypt;
1111

12+
import java.io.Serializable;
13+
1214
/**
1315
* 修改结算账户请求对象
1416
*/
@@ -17,7 +19,8 @@
1719
@NoArgsConstructor
1820
@AllArgsConstructor
1921
@Accessors(chain = true)
20-
public class ModifySettlementRequest {
22+
public class ModifySettlementRequest implements Serializable {
23+
private static final long serialVersionUID = 4568552340365230872L;
2124
/**
2225
*账户类型
2326
*/

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/SettlementInfoResult.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import lombok.NoArgsConstructor;
88
import lombok.experimental.Accessors;
99

10+
import java.io.Serializable;
11+
1012
/**
1113
* 查询结算账户返回对象信息
1214
*/
@@ -15,9 +17,9 @@
1517
@NoArgsConstructor
1618
@AllArgsConstructor
1719
@Accessors(chain = true)
18-
public class SettlementInfoResult {
19-
20-
/**
20+
public class SettlementInfoResult implements Serializable {
21+
private static final long serialVersionUID = 4568552340365230872L;
22+
/**
2123
* 账户类型
2224
*/
2325
@SerializedName("account_type")

0 commit comments

Comments
 (0)