Skip to content

Commit 1352385

Browse files
committed
移除Group相关接口
1 parent 74a0ada commit 1352385

File tree

6 files changed

+16
-282
lines changed

6 files changed

+16
-282
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGroupService.java

Lines changed: 0 additions & 71 deletions
This file was deleted.

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,6 @@ public interface WxMpService {
322322
*/
323323
WxMpUserService getUserService();
324324

325-
/**
326-
* 返回用户分组相关接口方法的实现类对象,以方便调用个其各种接口
327-
*
328-
* @return WxMpGroupService
329-
*/
330-
331-
WxMpGroupService getGroupService();
332-
333325
/**
334326
* 返回用户标签相关接口方法的实现类对象,以方便调用个其各种接口
335327
*

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGroupServiceImpl.java

Lines changed: 0 additions & 84 deletions
This file was deleted.

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpServiceImpl.java

Lines changed: 16 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
11
package me.chanjar.weixin.mp.api.impl;
22

3-
import java.io.IOException;
4-
5-
import org.apache.http.HttpHost;
6-
import org.apache.http.client.config.RequestConfig;
7-
import org.apache.http.client.methods.CloseableHttpResponse;
8-
import org.apache.http.client.methods.HttpGet;
9-
import org.apache.http.conn.ssl.DefaultHostnameVerifier;
10-
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
11-
import org.apache.http.impl.client.BasicResponseHandler;
12-
import org.apache.http.impl.client.CloseableHttpClient;
13-
import org.slf4j.Logger;
14-
import org.slf4j.LoggerFactory;
15-
163
import com.google.gson.JsonArray;
174
import com.google.gson.JsonElement;
185
import com.google.gson.JsonObject;
196
import com.google.gson.JsonParser;
20-
217
import me.chanjar.weixin.common.bean.WxAccessToken;
228
import me.chanjar.weixin.common.bean.WxJsapiSignature;
239
import me.chanjar.weixin.common.bean.result.WxError;
@@ -26,39 +12,22 @@
2612
import me.chanjar.weixin.common.session.WxSessionManager;
2713
import me.chanjar.weixin.common.util.RandomUtils;
2814
import me.chanjar.weixin.common.util.crypto.SHA1;
29-
import me.chanjar.weixin.common.util.http.ApacheHttpClientBuilder;
30-
import me.chanjar.weixin.common.util.http.DefaultApacheHttpClientBuilder;
31-
import me.chanjar.weixin.common.util.http.RequestExecutor;
32-
import me.chanjar.weixin.common.util.http.SimpleGetRequestExecutor;
33-
import me.chanjar.weixin.common.util.http.SimplePostRequestExecutor;
34-
import me.chanjar.weixin.common.util.http.URIUtil;
35-
import me.chanjar.weixin.mp.api.WxMpCardService;
36-
import me.chanjar.weixin.mp.api.WxMpConfigStorage;
37-
import me.chanjar.weixin.mp.api.WxMpDataCubeService;
38-
import me.chanjar.weixin.mp.api.WxMpGroupService;
39-
import me.chanjar.weixin.mp.api.WxMpKefuService;
40-
import me.chanjar.weixin.mp.api.WxMpMaterialService;
41-
import me.chanjar.weixin.mp.api.WxMpMenuService;
42-
import me.chanjar.weixin.mp.api.WxMpPayService;
43-
import me.chanjar.weixin.mp.api.WxMpQrcodeService;
44-
import me.chanjar.weixin.mp.api.WxMpService;
45-
import me.chanjar.weixin.mp.api.WxMpStoreService;
46-
import me.chanjar.weixin.mp.api.WxMpUserBlacklistService;
47-
import me.chanjar.weixin.mp.api.WxMpUserService;
48-
import me.chanjar.weixin.mp.api.WxMpUserTagService;
49-
import me.chanjar.weixin.mp.bean.WxMpIndustry;
50-
import me.chanjar.weixin.mp.bean.WxMpMassGroupMessage;
51-
import me.chanjar.weixin.mp.bean.WxMpMassNews;
52-
import me.chanjar.weixin.mp.bean.WxMpMassOpenIdsMessage;
53-
import me.chanjar.weixin.mp.bean.WxMpMassPreviewMessage;
54-
import me.chanjar.weixin.mp.bean.WxMpMassVideo;
55-
import me.chanjar.weixin.mp.bean.WxMpSemanticQuery;
56-
import me.chanjar.weixin.mp.bean.WxMpTemplateMessage;
57-
import me.chanjar.weixin.mp.bean.result.WxMpMassSendResult;
58-
import me.chanjar.weixin.mp.bean.result.WxMpMassUploadResult;
59-
import me.chanjar.weixin.mp.bean.result.WxMpOAuth2AccessToken;
60-
import me.chanjar.weixin.mp.bean.result.WxMpSemanticQueryResult;
61-
import me.chanjar.weixin.mp.bean.result.WxMpUser;
15+
import me.chanjar.weixin.common.util.http.*;
16+
import me.chanjar.weixin.mp.api.*;
17+
import me.chanjar.weixin.mp.bean.*;
18+
import me.chanjar.weixin.mp.bean.result.*;
19+
import org.apache.http.HttpHost;
20+
import org.apache.http.client.config.RequestConfig;
21+
import org.apache.http.client.methods.CloseableHttpResponse;
22+
import org.apache.http.client.methods.HttpGet;
23+
import org.apache.http.conn.ssl.DefaultHostnameVerifier;
24+
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
25+
import org.apache.http.impl.client.BasicResponseHandler;
26+
import org.apache.http.impl.client.CloseableHttpClient;
27+
import org.slf4j.Logger;
28+
import org.slf4j.LoggerFactory;
29+
30+
import java.io.IOException;
6231

6332
public class WxMpServiceImpl implements WxMpService {
6433

@@ -86,8 +55,6 @@ public class WxMpServiceImpl implements WxMpService {
8655

8756
private WxMpUserService userService = new WxMpUserServiceImpl(this);
8857

89-
private WxMpGroupService groupService = new WxMpGroupServiceImpl(this);
90-
9158
private WxMpUserTagService tagService = new WxMpUserTagServiceImpl(this);
9259

9360
private WxMpQrcodeService qrCodeService = new WxMpQrcodeServiceImpl(this);
@@ -559,11 +526,6 @@ public WxMpUserService getUserService() {
559526
return this.userService;
560527
}
561528

562-
@Override
563-
public WxMpGroupService getGroupService() {
564-
return this.groupService;
565-
}
566-
567529
@Override
568530
public WxMpUserTagService getUserTagService() {
569531
return this.tagService;

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGroupServiceImplTest.java

Lines changed: 0 additions & 62 deletions
This file was deleted.

weixin-java-mp/src/test/resources/testng.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
<classes>
66
<class name="me.chanjar.weixin.mp.api.WxMpBusyRetryTest" />
77
<class name="me.chanjar.weixin.mp.api.WxMpBaseAPITest" />
8-
<class name="me.chanjar.weixin.mp.api.WxMpCustomMessageAPITest" />
9-
<class name="me.chanjar.weixin.mp.api.impl.WxMpMenuAPITest" />
10-
<class name="me.chanjar.weixin.mp.api.impl.WxMpGroupServiceImplTest" />
118
<class name="me.chanjar.weixin.mp.api.WxMpMassMessageAPITest" />
129
<class name="me.chanjar.weixin.mp.api.impl.WxMpUserServiceImplTest" />
1310
<class name="me.chanjar.weixin.mp.api.impl.WxMpQrCodeServiceImplTest" />

0 commit comments

Comments
 (0)