mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
🎨 格式化部分代码
This commit is contained in:
parent
dfeb2f944f
commit
6cfe90b31e
@ -6,9 +6,9 @@ import me.chanjar.weixin.common.bean.WxAccessToken;
|
|||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: Brayden Wong
|
* @author Brayden Wong
|
||||||
* @Date: 2021/1/16
|
* @date 2021/1/16
|
||||||
* @Description: 提供accesstoken保存在concurrenthashmap中的实现,支持高并发。仅限于单机部署。
|
* 提供accesstoken保存在concurrenthashmap中的实现,支持高并发。仅限于单机部署。
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class WxMpMapConfigImpl extends WxMpDefaultConfigImpl {
|
public class WxMpMapConfigImpl extends WxMpDefaultConfigImpl {
|
||||||
|
@ -4,8 +4,8 @@ import lombok.Builder;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author: momorans
|
* @author momorans
|
||||||
* @create: 2019-03-12
|
* @create 2019-03-12
|
||||||
**/
|
**/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
|
@ -9,7 +9,6 @@ import java.util.List;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 二级商户进件 查询申请状态结果响应
|
* 二级商户进件 查询申请状态结果响应
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@ -344,7 +344,7 @@ public class CombineTransactionsRequest implements Serializable {
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public static class SettleInfo implements Serializable{
|
public static class SettleInfo implements Serializable {
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 字段名:是否指定分账
|
* 字段名:是否指定分账
|
||||||
|
@ -10,8 +10,9 @@ import java.io.Serializable;
|
|||||||
* <pre>
|
* <pre>
|
||||||
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_5.shtml
|
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_5.shtml
|
||||||
* </pre>
|
* </pre>
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/09/12
|
* @author f00lish
|
||||||
|
* @date 2020/09/12
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
|
@ -5,8 +5,8 @@ import lombok.Data;
|
|||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author: f00lish
|
* @author f00lish
|
||||||
* @date: 2020/09/12
|
* @date 2020/09/12
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@ -8,8 +8,8 @@ import java.io.Serializable;
|
|||||||
/**
|
/**
|
||||||
* 资金账单请求
|
* 资金账单请求
|
||||||
*
|
*
|
||||||
* @author: f00lish
|
* @author f00lish
|
||||||
* @date: 2020/09/28
|
* @date 2020/09/28
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
|
@ -8,8 +8,8 @@ import java.io.Serializable;
|
|||||||
/**
|
/**
|
||||||
* 资金账单结果
|
* 资金账单结果
|
||||||
*
|
*
|
||||||
* @author: f00lish
|
* @author f00lish
|
||||||
* @date: 2020/09/28
|
* @date 2020/09/28
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
|
@ -8,8 +8,9 @@ import java.io.Serializable;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 关闭普通订单请求
|
* 关闭普通订单请求
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/12/09
|
* @author f00lish
|
||||||
|
* @date 2020/12/09
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@ -13,8 +13,9 @@ import java.util.List;
|
|||||||
* <pre>
|
* <pre>
|
||||||
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_1.shtml
|
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_1.shtml
|
||||||
* </pre>
|
* </pre>
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/09/12
|
* @author f00lish
|
||||||
|
* @date 2020/09/12
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@ -9,8 +9,9 @@ import java.util.List;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求分账 结果响应
|
* 请求分账 结果响应
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/09/12
|
* @author f00lish
|
||||||
|
* @date 2020/09/12
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
package com.github.binarywang.wxpay.bean.ecommerce;
|
package com.github.binarywang.wxpay.bean.ecommerce;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author: f00lish
|
|
||||||
* @date: 2020/09/17
|
|
||||||
*/
|
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
|
|
||||||
@ -15,8 +10,9 @@ import java.io.Serializable;
|
|||||||
* * <pre>
|
* * <pre>
|
||||||
* * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_1.shtml
|
* * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_1.shtml
|
||||||
* * </pre>
|
* * </pre>
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/09/14
|
* @author f00lish
|
||||||
|
* @date 2020/09/14
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
@ -156,7 +152,6 @@ public class RefundsRequest implements Serializable {
|
|||||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public static class Amount implements Serializable {
|
public static class Amount implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 7383027142329410399L;
|
private static final long serialVersionUID = 7383027142329410399L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package com.github.binarywang.wxpay.bean.ecommerce;
|
package com.github.binarywang.wxpay.bean.ecommerce;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author: f00lish
|
* @author f00lish
|
||||||
* @date: 2020/09/17
|
* @date 2020/09/17
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
@ -17,8 +17,9 @@ import java.util.Date;
|
|||||||
* * <pre>
|
* * <pre>
|
||||||
* * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_1.shtml
|
* * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_1.shtml
|
||||||
* * </pre>
|
* * </pre>
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/09/14
|
* @author f00lish
|
||||||
|
* @date 2020/09/14
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@ -10,14 +10,17 @@ import java.io.Serializable;
|
|||||||
* * <pre>
|
* * <pre>
|
||||||
* * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
|
* * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
|
||||||
* * </pre>
|
* * </pre>
|
||||||
* @author: wangrui
|
*
|
||||||
* @date: 2021/02/20
|
* @author wangrui
|
||||||
|
* @date 2021/02/20
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public class ReturnOrdersQueryRequest implements Serializable {
|
public class ReturnOrdersQueryRequest implements Serializable {
|
||||||
|
private static final long serialVersionUID = 4250796057341297359L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 字段名:二级商户号
|
* 字段名:二级商户号
|
||||||
|
@ -10,8 +10,9 @@ import java.io.Serializable;
|
|||||||
* * <pre>
|
* * <pre>
|
||||||
* * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
|
* * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
|
||||||
* * </pre>
|
* * </pre>
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/09/14
|
* @author f00lish
|
||||||
|
* @date 2020/09/14
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
|
@ -8,8 +8,8 @@ import java.util.Date;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author: f00lish
|
* @author f00lish
|
||||||
* @date: 2020/09/14
|
* @date 2020/09/14
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
|
@ -11,8 +11,9 @@ import java.io.Serializable;
|
|||||||
* <pre>
|
* <pre>
|
||||||
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_6.shtml
|
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_6.shtml
|
||||||
* </pre>
|
* </pre>
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/10/27
|
* @author f00lish
|
||||||
|
* @date 2020/10/27
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@ -11,8 +11,9 @@ import java.io.Serializable;
|
|||||||
* <pre>
|
* <pre>
|
||||||
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_3.shtml
|
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_3.shtml
|
||||||
* </pre>
|
* </pre>
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/10/27
|
* @author f00lish
|
||||||
|
* @date 2020/10/27
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@ -8,8 +8,8 @@ import java.io.Serializable;
|
|||||||
/**
|
/**
|
||||||
* 交易账单结果
|
* 交易账单结果
|
||||||
*
|
*
|
||||||
* @author: f00lish
|
* @author f00lish
|
||||||
* @date: 2020/09/28
|
* @date 2020/09/28
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
|
@ -69,7 +69,7 @@ public class TransactionsResult implements Serializable {
|
|||||||
private String signType;
|
private String signType;
|
||||||
private String paySign;
|
private String paySign;
|
||||||
|
|
||||||
private String getSignStr(){
|
private String getSignStr() {
|
||||||
return String.format("%s\n%s\n%s\n%s\n", appId, timeStamp, nonceStr, packageValue);
|
return String.format("%s\n%s\n%s\n%s\n", appId, timeStamp, nonceStr, packageValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -86,10 +86,10 @@ public class TransactionsResult implements Serializable {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public <T> T getPayInfo(TradeTypeEnum tradeType, String appId, String mchId, PrivateKey privateKey){
|
public <T> T getPayInfo(TradeTypeEnum tradeType, String appId, String mchId, PrivateKey privateKey) {
|
||||||
String timestamp = String.valueOf(System.currentTimeMillis() / 1000);
|
String timestamp = String.valueOf(System.currentTimeMillis() / 1000);
|
||||||
String nonceStr = SignUtils.genRandomStr();
|
String nonceStr = SignUtils.genRandomStr();
|
||||||
switch (tradeType){
|
switch (tradeType) {
|
||||||
case JSAPI:
|
case JSAPI:
|
||||||
JsapiResult jsapiResult = new JsapiResult();
|
JsapiResult jsapiResult = new JsapiResult();
|
||||||
jsapiResult.setAppId(appId).setTimeStamp(timestamp)
|
jsapiResult.setAppId(appId).setTimeStamp(timestamp)
|
||||||
|
@ -5,8 +5,9 @@ import lombok.Getter;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 账单类型
|
* 账单类型
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/09/28
|
* @author f00lish
|
||||||
|
* @date 2020/09/28
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@ -5,8 +5,9 @@ import lombok.Getter;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务商账户类型
|
* 服务商账户类型
|
||||||
* @author: f00lish
|
*
|
||||||
* @date: 2020/09/12
|
* @author f00lish
|
||||||
|
* @date 2020/09/12
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@ -20,6 +20,7 @@ import java.util.Map;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@XStreamAlias("xml")
|
@XStreamAlias("xml")
|
||||||
public class EntWxEmpPayRequest extends BaseWxPayRequest {
|
public class EntWxEmpPayRequest extends BaseWxPayRequest {
|
||||||
|
private static final long serialVersionUID = -3677217123742740648L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user