|
3 | 3 |
|
4 | 4 | import com.google.gson.JsonObject;
|
5 | 5 | import lombok.extern.slf4j.Slf4j;
|
6 |
| -import me.chanjar.weixin.channel.api.*; |
| 6 | +import me.chanjar.weixin.channel.api.WxAssistantService; |
| 7 | +import me.chanjar.weixin.channel.api.WxChannelAddressService; |
| 8 | +import me.chanjar.weixin.channel.api.WxChannelAfterSaleService; |
| 9 | +import me.chanjar.weixin.channel.api.WxChannelBasicService; |
| 10 | +import me.chanjar.weixin.channel.api.WxChannelBrandService; |
| 11 | +import me.chanjar.weixin.channel.api.WxChannelCategoryService; |
| 12 | +import me.chanjar.weixin.channel.api.WxChannelCouponService; |
| 13 | +import me.chanjar.weixin.channel.api.WxChannelFreightTemplateService; |
| 14 | +import me.chanjar.weixin.channel.api.WxChannelFundService; |
| 15 | +import me.chanjar.weixin.channel.api.WxChannelOrderService; |
| 16 | +import me.chanjar.weixin.channel.api.WxChannelProductService; |
| 17 | +import me.chanjar.weixin.channel.api.WxChannelService; |
| 18 | +import me.chanjar.weixin.channel.api.WxChannelSharerService; |
| 19 | +import me.chanjar.weixin.channel.api.WxChannelWarehouseService; |
| 20 | +import me.chanjar.weixin.channel.api.WxFinderLiveService; |
| 21 | +import me.chanjar.weixin.channel.api.WxLeadComponentService; |
| 22 | +import me.chanjar.weixin.channel.api.WxLeagueProductService; |
| 23 | +import me.chanjar.weixin.channel.api.WxLeaguePromoterService; |
| 24 | +import me.chanjar.weixin.channel.api.WxLeagueSupplierService; |
| 25 | +import me.chanjar.weixin.channel.api.WxLeagueWindowService; |
7 | 26 | import me.chanjar.weixin.channel.config.WxChannelConfig;
|
8 | 27 | import me.chanjar.weixin.channel.util.JsonUtils;
|
9 | 28 | import me.chanjar.weixin.common.api.WxConsts;
|
@@ -51,6 +70,9 @@ public abstract class BaseWxChannelServiceImpl<H, P> implements WxChannelService
|
51 | 70 | private WxLeagueSupplierService leagueSupplierService = null;
|
52 | 71 | private WxLeaguePromoterService leaguePromoterService = null;
|
53 | 72 | private WxLeagueProductService leagueProductService = null;
|
| 73 | + private WxLeadComponentService leadComponentService = null; |
| 74 | + private WxFinderLiveService finderLiveService = null; |
| 75 | + private WxAssistantService assistantService = null; |
54 | 76 |
|
55 | 77 | protected WxChannelConfig config;
|
56 | 78 | private int retrySleepMillis = 1000;
|
@@ -377,4 +399,30 @@ public synchronized WxLeagueProductService getLeagueProductService() {
|
377 | 399 | }
|
378 | 400 | return leagueProductService;
|
379 | 401 | }
|
| 402 | + |
| 403 | + @Override |
| 404 | + public WxLeadComponentService getLeadComponentService() { |
| 405 | + if (leadComponentService == null) { |
| 406 | + leadComponentService = new WxLeadComponentServiceImpl(this); |
| 407 | + } |
| 408 | + return leadComponentService; |
| 409 | + } |
| 410 | + |
| 411 | + @Override |
| 412 | + public WxFinderLiveService getFinderLiveService() { |
| 413 | + if (finderLiveService == null) { |
| 414 | + finderLiveService = new WxFinderLiveServiceImpl(this); |
| 415 | + } |
| 416 | + return finderLiveService; |
| 417 | + } |
| 418 | + |
| 419 | + @Override |
| 420 | + public WxAssistantService getAssistantService() { |
| 421 | + if (assistantService == null) { |
| 422 | + assistantService = new WxAssistantServiceImpl(this) { |
| 423 | + }; |
| 424 | + } |
| 425 | + return assistantService; |
| 426 | + } |
| 427 | + |
380 | 428 | }
|
0 commit comments