|
1 | 1 | package me.chanjar.weixin.mp.api.impl; |
2 | 2 |
|
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 | | - |
16 | 3 | import com.google.gson.JsonArray; |
17 | 4 | import com.google.gson.JsonElement; |
18 | 5 | import com.google.gson.JsonObject; |
19 | 6 | import com.google.gson.JsonParser; |
20 | | - |
21 | 7 | import me.chanjar.weixin.common.bean.WxAccessToken; |
22 | 8 | import me.chanjar.weixin.common.bean.WxJsapiSignature; |
23 | 9 | import me.chanjar.weixin.common.bean.result.WxError; |
|
26 | 12 | import me.chanjar.weixin.common.session.WxSessionManager; |
27 | 13 | import me.chanjar.weixin.common.util.RandomUtils; |
28 | 14 | 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.WxMpUserService; |
46 | | -import me.chanjar.weixin.mp.bean.WxMpCustomMessage; |
47 | | -import me.chanjar.weixin.mp.bean.WxMpIndustry; |
48 | | -import me.chanjar.weixin.mp.bean.WxMpMassGroupMessage; |
49 | | -import me.chanjar.weixin.mp.bean.WxMpMassNews; |
50 | | -import me.chanjar.weixin.mp.bean.WxMpMassOpenIdsMessage; |
51 | | -import me.chanjar.weixin.mp.bean.WxMpMassPreviewMessage; |
52 | | -import me.chanjar.weixin.mp.bean.WxMpMassVideo; |
53 | | -import me.chanjar.weixin.mp.bean.WxMpSemanticQuery; |
54 | | -import me.chanjar.weixin.mp.bean.WxMpTemplateMessage; |
55 | | -import me.chanjar.weixin.mp.bean.result.WxMpMassSendResult; |
56 | | -import me.chanjar.weixin.mp.bean.result.WxMpMassUploadResult; |
57 | | -import me.chanjar.weixin.mp.bean.result.WxMpOAuth2AccessToken; |
58 | | -import me.chanjar.weixin.mp.bean.result.WxMpSemanticQueryResult; |
59 | | -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; |
60 | 31 |
|
61 | 32 | public class WxMpServiceImpl implements WxMpService { |
62 | 33 |
|
@@ -86,6 +57,8 @@ public class WxMpServiceImpl implements WxMpService { |
86 | 57 |
|
87 | 58 | private WxMpGroupService groupService = new WxMpGroupServiceImpl(this); |
88 | 59 |
|
| 60 | + private WxMpUserTagService tagService = new WxMpUserTagServiceImpl(this); |
| 61 | + |
89 | 62 | private WxMpQrcodeService qrCodeService = new WxMpQrcodeServiceImpl(this); |
90 | 63 |
|
91 | 64 | private WxMpCardService cardService = new WxMpCardServiceImpl(this); |
@@ -534,6 +507,11 @@ public WxMpGroupService getGroupService() { |
534 | 507 | return this.groupService; |
535 | 508 | } |
536 | 509 |
|
| 510 | + @Override |
| 511 | + public WxMpUserTagService getUserTagService() { |
| 512 | + return this.tagService; |
| 513 | + } |
| 514 | + |
537 | 515 | @Override |
538 | 516 | public WxMpQrcodeService getQrcodeService() { |
539 | 517 | return this.qrCodeService; |
|
0 commit comments