{
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpServiceImpl.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.cp.tp.service.impl;
2 |
3 | /**
4 | *
5 | * 默认接口实现类,使用apache httpclient实现
6 | * Created by zhenjun cai.
7 | *
8 | *
9 | * @author zhenjun cai
10 | */
11 | public class WxCpTpServiceImpl extends WxCpTpServiceApacheHttpClientImpl {
12 | }
13 |
--------------------------------------------------------------------------------
/solon-plugins/wx-java-channel-solon-plugin/src/main/java/com/binarywang/solon/wxjava/channel/enums/HttpClientType.java:
--------------------------------------------------------------------------------
1 | package com.binarywang.solon.wxjava.channel.enums;
2 |
3 | /**
4 | * httpclient类型
5 | *
6 | * @author Zeyes
7 | */
8 | public enum HttpClientType {
9 | /**
10 | * HttpClient
11 | */
12 | HttpClient
13 | }
14 |
--------------------------------------------------------------------------------
/weixin-java-channel/src/test/resources/test-config.sample.xml:
--------------------------------------------------------------------------------
1 |
2 | JSON或者XML
3 | appid
4 | secret
5 | Token
6 | EncodingAESKey
7 | false
8 | 可以不填写
9 | 可以不填写
10 |
11 |
--------------------------------------------------------------------------------
/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/Credentials.java:
--------------------------------------------------------------------------------
1 | package com.github.binarywang.wxpay.v3;
2 |
3 | import java.io.IOException;
4 |
5 | import org.apache.http.client.methods.HttpRequestWrapper;
6 |
7 | public interface Credentials {
8 |
9 | String getSchema();
10 |
11 | String getToken(HttpRequestWrapper request) throws IOException;
12 | }
13 |
--------------------------------------------------------------------------------
/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxErrorExceptionHandler.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.common.api;
2 |
3 | import me.chanjar.weixin.common.error.WxErrorException;
4 |
5 | /**
6 | * WxErrorException处理器.
7 | *
8 | * @author Daniel Qian
9 | */
10 | public interface WxErrorExceptionHandler {
11 |
12 | void handle(WxErrorException e);
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopPicFileCustomizeResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.common.bean.result;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | @Data
8 | public class WxMinishopPicFileCustomizeResult implements Serializable {
9 | private String mediaId;
10 | private String tempImgUrl;
11 | }
12 |
--------------------------------------------------------------------------------
/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/AccountTypeEnum.java:
--------------------------------------------------------------------------------
1 | package com.github.binarywang.wxpay.bean.applyment.enums;
2 |
3 |
4 | /**
5 | * 银行结算账户枚举类
6 | */
7 | public enum AccountTypeEnum {
8 | /**
9 | * 对公银行账户
10 | */
11 | ACCOUNT_TYPE_BUSINESS,
12 |
13 | /**
14 | * 经营者个人银行卡
15 | */
16 | ACCOUNT_TYPE_PRIVATE,
17 | ;
18 | }
19 |
--------------------------------------------------------------------------------
/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ToJson.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.common.bean;
2 |
3 | /**
4 | * 包含toJson()方法的接口.
5 | *
6 | * @author Binary Wang
7 | * created on 2020-10-05
8 | */
9 | public interface ToJson {
10 | /**
11 | * 转换为json字符串
12 | * @return json字符串
13 | */
14 | String toJson();
15 | }
16 |
--------------------------------------------------------------------------------
/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopPicFileResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.common.bean.result;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | @Data
8 | public class WxMinishopPicFileResult implements Serializable {
9 | private String mediaId;
10 | private String payMediaId;
11 | private String tempImgUrl;
12 | }
13 |
--------------------------------------------------------------------------------
/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateTipsContent.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.cp.bean.oa.templatedata;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * @author mrsiu@msn.com
7 | * @version 1.0
8 | * @date 2025/1/16 09:42
9 | */
10 | @Data
11 | public class TemplateTipsContent {
12 |
13 | private TemplateTipsText text;
14 | private String lang;
15 | }
16 |
--------------------------------------------------------------------------------
/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateTipsSubTextContentPlainText.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.cp.bean.oa.templatedata;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * @author mrsiu@msn.com
7 | * @date 2025/1/16 09:47
8 | * @version 1.0
9 | */
10 | @Data
11 | public class TemplateTipsSubTextContentPlainText {
12 | private String content;
13 | }
14 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpServiceImpl.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.api.impl;
2 |
3 | /**
4 | *
5 | * 默认接口实现类,使用apache httpclient实现
6 | * Created by Binary Wang on 2017-5-27.
7 | *
8 | *
9 | * @author Binary Wang
10 | */
11 | public class WxMpServiceImpl extends WxMpServiceHttpClientImpl {
12 | }
13 |
--------------------------------------------------------------------------------
/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/enums/AuthorizeStateEnum.java:
--------------------------------------------------------------------------------
1 | package com.github.binarywang.wxpay.bean.applyconfirm.enums;
2 |
3 |
4 | /**
5 | * 授权状态枚举类
6 | */
7 | public enum AuthorizeStateEnum {
8 | /**
9 | * 未授权
10 | */
11 | AUTHORIZE_STATE_UNAUTHORIZED,
12 |
13 | /**
14 | * 已授权
15 | */
16 | AUTHORIZE_STATE_AUTHORIZED,
17 | ;
18 | }
19 |
--------------------------------------------------------------------------------
/spring-boot-starters/wx-java-channel-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/channel/enums/HttpClientType.java:
--------------------------------------------------------------------------------
1 | package com.binarywang.spring.starter.wxjava.channel.enums;
2 |
3 | /**
4 | * httpclient类型
5 | *
6 | * @author Zeyes
7 | */
8 | public enum HttpClientType {
9 | /**
10 | * HttpClient
11 | */
12 | HttpClient
13 | }
14 |
--------------------------------------------------------------------------------
/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateTipsSubText.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.cp.bean.oa.templatedata;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * @author mrsiu@msn.com
7 | * @version 1.0
8 | * @date 2025/1/16 09:45
9 | */
10 | @Data
11 | public class TemplateTipsSubText {
12 | private Integer type;
13 | private TemplateTipsSubTextContent content;
14 | }
15 |
--------------------------------------------------------------------------------
/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateTipsSubTextContentLink.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.cp.bean.oa.templatedata;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * @author mrsiu@msn.com
7 | * @version 1.0
8 | * @date 2025/1/16 09:49
9 | */
10 | @Data
11 | public class TemplateTipsSubTextContentLink {
12 | private String title;
13 | private String url;
14 | }
15 |
--------------------------------------------------------------------------------
/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/BankAccountTypeEnum.java:
--------------------------------------------------------------------------------
1 | package com.github.binarywang.wxpay.bean.applyment.enums;
2 |
3 |
4 | /**
5 | * 银行结算账户枚举类
6 | */
7 | public enum BankAccountTypeEnum {
8 | /**
9 | * 对公银行账户
10 | */
11 | BANK_ACCOUNT_TYPE_CORPORATE,
12 |
13 | /**
14 | * 经营者个人银行卡
15 | */
16 | BANK_ACCOUNT_TYPE_PERSONAL,
17 | ;
18 | }
19 |
--------------------------------------------------------------------------------
/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheBasicResponseHandler.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.common.util.http.apache;
2 |
3 | import org.apache.http.impl.client.BasicResponseHandler;
4 |
5 | public class ApacheBasicResponseHandler extends BasicResponseHandler {
6 |
7 | public static final ApacheBasicResponseHandler INSTANCE = new ApacheBasicResponseHandler();
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/weixin-java-common/src/main/resources/META-INF/native-image/com.github.binarywang/weixin-java-common/native-image.properties:
--------------------------------------------------------------------------------
1 | Args = --initialize-at-run-time=org.apache.http.impl.auth.NTLMEngineImpl \
2 | --initialize-at-run-time=org.apache.http.impl.auth.NTLMEngine \
3 | --initialize-at-run-time=org.apache.http.impl.auth.KerberosScheme \
4 | --initialize-at-run-time=org.apache.http.impl.auth.SPNegoScheme
5 |
--------------------------------------------------------------------------------
/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateLocation.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.cp.bean.oa.templatedata;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * The type Template location.
7 | *
8 | * @author RickSun sunalee@dingtalk.com
9 | */
10 | @Data
11 | public class TemplateLocation {
12 |
13 | /**
14 | * 模板位置的范围
15 | */
16 | private Integer distance;
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerListResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.result;
2 |
3 | import lombok.Data;
4 |
5 | import java.util.List;
6 | import java.util.Map;
7 |
8 | /**
9 | * @author robgao
10 | */
11 | @Data
12 | public class WxOpenAuthorizerListResult {
13 | private int totalCount;
14 | private List