Commit 53e9c498 authored by xianjun's avatar xianjun

修改微信小程序接口文档

parent 179ac129
- [小程序码与小程序链接]
- [URL Link]
- [获取 URL Link](./urllink/generateUrlLink.md)
- [查询 URL Link](./urllink/queryUrlLink.md)
- [URL Scheme]
- [获取 NFC 的小程序 scheme](./urlscheme/generateNFCScheme.md)
- [获取scheme码](./urlscheme/generateScheme.md)
- [查询scheme码](./urlscheme/queryScheme.md)
- [小程序码]
- [获取小程序二维码](./wxacode/createQRCode.md)
- [获取小程序码](./wxacode/getQRCode.md)
- [获取不限制的小程序码](./wxacode/getUnlimitedQRCode.md)
...@@ -27,7 +27,7 @@ public class WxXcxUrlLinkGenerateRequest implements WxXcxRequestUrl, WxXcxReques ...@@ -27,7 +27,7 @@ public class WxXcxUrlLinkGenerateRequest implements WxXcxRequestUrl, WxXcxReques
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlLinkGenerate() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlLinkGenerateUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxUrlLinkQueryRequest implements WxXcxRequestUrl, WxXcxRequestUr ...@@ -26,7 +26,7 @@ public class WxXcxUrlLinkQueryRequest implements WxXcxRequestUrl, WxXcxRequestUr
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlLinkQuery() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlLinkQueryUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxUrlSchemeGenerateNfcRequest implements WxXcxRequestUrl, WxXcxR ...@@ -27,7 +27,7 @@ public class WxXcxUrlSchemeGenerateNfcRequest implements WxXcxRequestUrl, WxXcxR
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlSchemeGenerateNFC() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlSchemeGenerateNFCUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -28,7 +28,7 @@ public class WxXcxUrlSchemeGenerateRequest implements WxXcxRequestUrl, WxXcxRequ ...@@ -28,7 +28,7 @@ public class WxXcxUrlSchemeGenerateRequest implements WxXcxRequestUrl, WxXcxRequ
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlSchemeGenerate() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlSchemeGenerateUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxUrlSchemeQueryRequest implements WxXcxRequestUrl, WxXcxRequest ...@@ -27,7 +27,7 @@ public class WxXcxUrlSchemeQueryRequest implements WxXcxRequestUrl, WxXcxRequest
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlSchemeQuery() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUrlSchemeQueryUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxWxaCodeCreateQrCodeRequest implements WxXcxRequestUrl, WxXcxRe ...@@ -27,7 +27,7 @@ public class WxXcxWxaCodeCreateQrCodeRequest implements WxXcxRequestUrl, WxXcxRe
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getWxaCodeCreateQRCode() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getWxaCodeCreateQRCodeUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxWxaCodeGetRequest implements WxXcxRequestUrl, WxXcxRequestUrlP ...@@ -27,7 +27,7 @@ public class WxXcxWxaCodeGetRequest implements WxXcxRequestUrl, WxXcxRequestUrlP
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getWxaCodeGet() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getWxaCodeGetUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxWxaCodeGetUnlimitedRequest implements WxXcxRequestUrl, WxXcxRe ...@@ -27,7 +27,7 @@ public class WxXcxWxaCodeGetUnlimitedRequest implements WxXcxRequestUrl, WxXcxRe
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getWxaCodeGetUnlimited() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getWxaCodeGetUnlimitedUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxAnalysisGetPerformanceDataRequest implements WxXcxRequestUrl, ...@@ -26,7 +26,7 @@ public class WxXcxAnalysisGetPerformanceDataRequest implements WxXcxRequestUrl,
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetPerformanceData() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetPerformanceDataUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetVisitDistributionRequest implements WxXcxRequestUrl ...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetVisitDistributionRequest implements WxXcxRequestUrl
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetVisitDistribution() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetVisitDistributionUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -28,7 +28,7 @@ public class WxXcxAnalysisGetVisitPageRequest implements WxXcxRequestUrl, WxXcxR ...@@ -28,7 +28,7 @@ public class WxXcxAnalysisGetVisitPageRequest implements WxXcxRequestUrl, WxXcxR
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetVisitPage() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetVisitPageUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetUserPortraitRequest implements WxXcxRequestUrl, WxX ...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetUserPortraitRequest implements WxXcxRequestUrl, WxX
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetUserPortrait() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetUserPortraitUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
- [数据分析]
- [其他]
- [获取小程序性能数据](./data/getPerformanceData.md)
- [获取用户小程序访问分布数据](./distribution/getVisitDistribution.md)
- [获取访问页面数据](./page/getVisitPage.md)
- [获取小程序用户画像分布](./portrait/getUserPortrait.md)
- [获取用户访问小程序数据概况](./summary/getDailySummary.md)
- [访问留存]
- [获取用户访问小程序日留存](./retain/getDailyRetain.md)
- [获取用户访问小程序月留存](./retain/getMonthlyRetain.md)
- [获取用户访问小程序周留存](./retain/getWeeklyRetain.md)
- [访问趋势]
- [获取用户访问小程序数据日趋势](./trend/getDailyVisitTrend.md)
- [获取用户访问小程序数据月趋势](./trend/getMonthlyVisitTrend.md)
- [获取用户访问小程序数据周趋势](./trend/getWeeklyVisitTrend.md)
...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetDailyRetainRequest implements WxXcxRequestUrl, WxXc ...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetDailyRetainRequest implements WxXcxRequestUrl, WxXc
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetDailyRetain() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetDailyRetainUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxAnalysisGetMonthlyRetainRequest implements WxXcxRequestUrl, Wx ...@@ -26,7 +26,7 @@ public class WxXcxAnalysisGetMonthlyRetainRequest implements WxXcxRequestUrl, Wx
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetMonthlyRetain() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetMonthlyRetainUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetWeeklyRetainRequest implements WxXcxRequestUrl, WxX ...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetWeeklyRetainRequest implements WxXcxRequestUrl, WxX
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetWeeklyRetain() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetWeeklyRetainUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxAnalysisGetDailySummaryRequest implements WxXcxRequestUrl, WxX ...@@ -26,7 +26,7 @@ public class WxXcxAnalysisGetDailySummaryRequest implements WxXcxRequestUrl, WxX
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetDailySummary() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetDailySummaryUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetDailyVisitTrendRequest implements WxXcxRequestUrl, ...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetDailyVisitTrendRequest implements WxXcxRequestUrl,
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetDailyVisitTrend() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetDailyVisitTrendUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxAnalysisGetMonthlyVisitTrendRequest implements WxXcxRequestUrl ...@@ -26,7 +26,7 @@ public class WxXcxAnalysisGetMonthlyVisitTrendRequest implements WxXcxRequestUrl
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetMonthlyVisitTrend() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetMonthlyVisitTrendUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetWeeklyVisitTrendRequest implements WxXcxRequestUrl, ...@@ -27,7 +27,7 @@ public class WxXcxAnalysisGetWeeklyVisitTrendRequest implements WxXcxRequestUrl,
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetWeeklyVisitTrend() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAnalysisGetWeeklyVisitTrendUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
- [小程序登录]
- [小程序登录](./code2Session.md)
- [消息相关]
- [统一服务消息]
- [下发统一消息](./uniformmessage/sendUniformMessage.md)
- [动态消息]
- [创建activity_id](./updatablemessage/createActivityId.md)
- [修改动态消息](./updatablemessage/setUpdatableMsg.md)
\ No newline at end of file
...@@ -26,7 +26,7 @@ public class WxXcxUniformMessageSendRequest implements WxXcxRequestUrl, WxXcxReq ...@@ -26,7 +26,7 @@ public class WxXcxUniformMessageSendRequest implements WxXcxRequestUrl, WxXcxReq
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUniformMessageSend() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUniformMessageSendUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxUpdatableMessageCreateActivityIdRequest implements WxXcxReques ...@@ -26,7 +26,7 @@ public class WxXcxUpdatableMessageCreateActivityIdRequest implements WxXcxReques
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUpdatableMessageCreateActivityId() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUpdatableMessageCreateActivityIdUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxUpdatableMessageSetUpdatableMsgRequest implements WxXcxRequest ...@@ -27,7 +27,7 @@ public class WxXcxUpdatableMessageSetUpdatableMsgRequest implements WxXcxRequest
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUpdatableMessageSetUpdatableMsg() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getUpdatableMessageSetUpdatableMsgUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxNearbyPoiAddRequest implements WxXcxRequestUrl, WxXcxRequestUr ...@@ -26,7 +26,7 @@ public class WxXcxNearbyPoiAddRequest implements WxXcxRequestUrl, WxXcxRequestUr
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getNearbyPoiAdd() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getNearbyPoiAddUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxNearbyPoiDeleteRequest implements WxXcxRequestUrl, WxXcxReques ...@@ -27,7 +27,7 @@ public class WxXcxNearbyPoiDeleteRequest implements WxXcxRequestUrl, WxXcxReques
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getNearbyPoiDelete() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getNearbyPoiDeleteUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxNearbyPoiGetListRequest implements WxXcxRequestUrl, WxXcxReque ...@@ -26,7 +26,7 @@ public class WxXcxNearbyPoiGetListRequest implements WxXcxRequestUrl, WxXcxReque
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getNearbyPoiGetList() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getNearbyPoiGetListUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxNearbyPoiSetShowStatusRequest implements WxXcxRequestUrl, WxXc ...@@ -26,7 +26,7 @@ public class WxXcxNearbyPoiSetShowStatusRequest implements WxXcxRequestUrl, WxXc
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getNearbyPoiSetShowStatus() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getNearbyPoiSetShowStatusUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
- [附近小程序]
- [添加地点](./addNearbyPoi.md)
- [删除地点](./deleteNearbyPoi.md)
- [查看地点](./getNearbyPoiList.md)
- [设置展示状态](./setShowStatus.md)
...@@ -28,7 +28,7 @@ public class WxXcxOpenApiManageClearQuotaRequest implements WxXcxRequestUrl, WxX ...@@ -28,7 +28,7 @@ public class WxXcxOpenApiManageClearQuotaRequest implements WxXcxRequestUrl, WxX
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getClearQuota() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getClearQuotaUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -27,7 +27,7 @@ public class WxXcxOpenApiManageGetApiQuotaRequest implements WxXcxRequestUrl, Wx ...@@ -27,7 +27,7 @@ public class WxXcxOpenApiManageGetApiQuotaRequest implements WxXcxRequestUrl, Wx
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getGetApiQuota() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getGetApiQuotaUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxOpenApiManageGetRidInfoRequest implements WxXcxRequestUrl, WxX ...@@ -26,7 +26,7 @@ public class WxXcxOpenApiManageGetRidInfoRequest implements WxXcxRequestUrl, WxX
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getGetRidInfo() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getGetRidInfoUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
- [openApi管理]
- [重置API调用次数](./clearQuota.md)
- [查询API调用额度](./getApiQuota.md)
- [查询RID信息](./getRidInfo.md)
\ No newline at end of file
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.all;
/** /**
* 获取当前所有插件使用方(供插件开发者调用) 响应项详情 * 获取当前所有插件使用方(供插件开发者调用) 响应项详情
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.all;
/** /**
* 获取当前所有插件使用方(供插件开发者调用) 请求 * 获取当前所有插件使用方(供插件开发者调用) 请求
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.all;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import com.yanzuoguang.util.helper.HttpHelper; import com.yanzuoguang.util.helper.HttpHelper;
...@@ -26,7 +26,7 @@ public class WxXxcPluginManagerGetPluginDevApplyListRequest implements WxXcxRequ ...@@ -26,7 +26,7 @@ public class WxXxcPluginManagerGetPluginDevApplyListRequest implements WxXcxRequ
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerGetPluginDevApplyList() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerGetPluginDevApplyListUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.all;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError; import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
......
package com.yanzuoguang.wxxcx.pluginmanager.service; package com.yanzuoguang.wxxcx.pluginmanager.all.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListReq; import com.yanzuoguang.wxxcx.pluginmanager.all.WxXxcPluginManagerGetPluginDevApplyListReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListRes; import com.yanzuoguang.wxxcx.pluginmanager.all.WxXxcPluginManagerGetPluginDevApplyListRes;
/** /**
* 获取当前所有插件使用方 接口 * 获取当前所有插件使用方 接口
......
package com.yanzuoguang.wxxcx.pluginmanager.service.impl; package com.yanzuoguang.wxxcx.pluginmanager.all.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig; import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest; import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListReq; import com.yanzuoguang.wxxcx.pluginmanager.all.WxXxcPluginManagerGetPluginDevApplyListReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListRequest; import com.yanzuoguang.wxxcx.pluginmanager.all.WxXxcPluginManagerGetPluginDevApplyListRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListRes; import com.yanzuoguang.wxxcx.pluginmanager.all.WxXxcPluginManagerGetPluginDevApplyListRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXxcPluginManagerGetPluginDevApplyListService; import com.yanzuoguang.wxxcx.pluginmanager.all.service.WxXxcPluginManagerGetPluginDevApplyListService;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.apply;
/** /**
* 向插件开发者发起使用插件的申请 请求 * 向插件开发者发起使用插件的申请 请求
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.apply;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import com.yanzuoguang.util.helper.HttpHelper; import com.yanzuoguang.util.helper.HttpHelper;
...@@ -26,7 +26,7 @@ public class WxXcxPluginManagerApplyPluginRequest implements WxXcxRequestUrl, Wx ...@@ -26,7 +26,7 @@ public class WxXcxPluginManagerApplyPluginRequest implements WxXcxRequestUrl, Wx
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerApplyPlugin() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerApplyPluginUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.apply;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError; import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
......
package com.yanzuoguang.wxxcx.pluginmanager.service; package com.yanzuoguang.wxxcx.pluginmanager.apply.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginReq; import com.yanzuoguang.wxxcx.pluginmanager.apply.WxXcxPluginManagerApplyPluginReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginRes; import com.yanzuoguang.wxxcx.pluginmanager.apply.WxXcxPluginManagerApplyPluginRes;
/** /**
* 向插件开发者发起使用插件的申请 接口 * 向插件开发者发起使用插件的申请 接口
......
package com.yanzuoguang.wxxcx.pluginmanager.service.impl; package com.yanzuoguang.wxxcx.pluginmanager.apply.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig; import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest; import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginReq; import com.yanzuoguang.wxxcx.pluginmanager.apply.WxXcxPluginManagerApplyPluginReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginRequest; import com.yanzuoguang.wxxcx.pluginmanager.apply.WxXcxPluginManagerApplyPluginRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginRes; import com.yanzuoguang.wxxcx.pluginmanager.apply.WxXcxPluginManagerApplyPluginRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXcxPluginManagerApplyPluginService; import com.yanzuoguang.wxxcx.pluginmanager.apply.service.WxXcxPluginManagerApplyPluginService;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.get;
/** /**
* 查询已添加的插件 响应项 * 查询已添加的插件 响应项
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.get;
/** /**
* 查询已添加的插件 请求 * 查询已添加的插件 请求
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.get;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import com.yanzuoguang.util.helper.HttpHelper; import com.yanzuoguang.util.helper.HttpHelper;
...@@ -27,7 +27,7 @@ public class WxXcxPluginManagerGetPluginListRequest implements WxXcxRequestUrl, ...@@ -27,7 +27,7 @@ public class WxXcxPluginManagerGetPluginListRequest implements WxXcxRequestUrl,
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerGetPluginList() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerGetPluginListUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.get;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError; import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
......
package com.yanzuoguang.wxxcx.pluginmanager.service; package com.yanzuoguang.wxxcx.pluginmanager.get.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListReq; import com.yanzuoguang.wxxcx.pluginmanager.get.WxXcxPluginManagerGetPluginListReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListRes; import com.yanzuoguang.wxxcx.pluginmanager.get.WxXcxPluginManagerGetPluginListRes;
/** /**
* 查询已添加的插件 接口 * 查询已添加的插件 接口
......
package com.yanzuoguang.wxxcx.pluginmanager.service.impl; package com.yanzuoguang.wxxcx.pluginmanager.get.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig; import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest; import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListReq; import com.yanzuoguang.wxxcx.pluginmanager.get.WxXcxPluginManagerGetPluginListReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListRequest; import com.yanzuoguang.wxxcx.pluginmanager.get.WxXcxPluginManagerGetPluginListRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListRes; import com.yanzuoguang.wxxcx.pluginmanager.get.WxXcxPluginManagerGetPluginListRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXcxPluginManagerGetPluginListService; import com.yanzuoguang.wxxcx.pluginmanager.get.service.WxXcxPluginManagerGetPluginListService;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
......
- [插件管理]
- [插件申请管理](./all/managePluginApplication.md)
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.status;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
...@@ -27,7 +27,7 @@ public class WxXcxPluginManagerSetDevPluginApplyStatusRequest implements WxXcxRe ...@@ -27,7 +27,7 @@ public class WxXcxPluginManagerSetDevPluginApplyStatusRequest implements WxXcxRe
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerSetDevPluginApplyStatus() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerSetDevPluginApplyStatusUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.status;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError; import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
......
package com.yanzuoguang.wxxcx.pluginmanager.service; package com.yanzuoguang.wxxcx.pluginmanager.status.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusReq; import com.yanzuoguang.wxxcx.pluginmanager.status.WxXcxPluginManagerSetDevPluginApplyStatusReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusRes; import com.yanzuoguang.wxxcx.pluginmanager.status.WxXcxPluginManagerSetDevPluginApplyStatusRes;
/** /**
* 修改插件使用申请的状态 接口 * 修改插件使用申请的状态 接口
......
package com.yanzuoguang.wxxcx.pluginmanager.service.impl; package com.yanzuoguang.wxxcx.pluginmanager.status.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig; import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest; import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusReq; import com.yanzuoguang.wxxcx.pluginmanager.status.WxXcxPluginManagerSetDevPluginApplyStatusReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusRequest; import com.yanzuoguang.wxxcx.pluginmanager.status.WxXcxPluginManagerSetDevPluginApplyStatusRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusRes; import com.yanzuoguang.wxxcx.pluginmanager.status.WxXcxPluginManagerSetDevPluginApplyStatusRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXcxPluginManagerSetDevPluginApplyStatusService; import com.yanzuoguang.wxxcx.pluginmanager.status.service.WxXcxPluginManagerSetDevPluginApplyStatusService;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.unbind;
/** /**
* 删除已添加的插件 请求 * 删除已添加的插件 请求
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.unbind;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
...@@ -27,7 +27,7 @@ public class WxXcxPluginManagerUnbindPluginRequest implements WxXcxRequestUrl, W ...@@ -27,7 +27,7 @@ public class WxXcxPluginManagerUnbindPluginRequest implements WxXcxRequestUrl, W
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerUnbindPlugin() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getPluginManagerUnbindPluginUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
package com.yanzuoguang.wxxcx.pluginmanager; package com.yanzuoguang.wxxcx.pluginmanager.unbind;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError; import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
......
package com.yanzuoguang.wxxcx.pluginmanager.service; package com.yanzuoguang.wxxcx.pluginmanager.unbind.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginReq; import com.yanzuoguang.wxxcx.pluginmanager.unbind.WxXcxPluginManagerUnbindPluginReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginRes; import com.yanzuoguang.wxxcx.pluginmanager.unbind.WxXcxPluginManagerUnbindPluginRes;
/** /**
* 删除已添加的插件 接口 * 删除已添加的插件 接口
......
package com.yanzuoguang.wxxcx.pluginmanager.service.impl; package com.yanzuoguang.wxxcx.pluginmanager.unbind.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig; import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest; import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginReq; import com.yanzuoguang.wxxcx.pluginmanager.unbind.WxXcxPluginManagerUnbindPluginReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginRequest; import com.yanzuoguang.wxxcx.pluginmanager.unbind.WxXcxPluginManagerUnbindPluginRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginRes; import com.yanzuoguang.wxxcx.pluginmanager.unbind.WxXcxPluginManagerUnbindPluginRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXcxPluginManagerUnbindPluginService; import com.yanzuoguang.wxxcx.pluginmanager.unbind.service.WxXcxPluginManagerUnbindPluginService;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
......
- [微信红包封面]
- [获取微信红包封面](./getRedPacketCoverUrl.md)
...@@ -32,7 +32,7 @@ public class WxXcxSecurityMediaCheckAsyncRequest implements WxXcxRequestUrl, WxX ...@@ -32,7 +32,7 @@ public class WxXcxSecurityMediaCheckAsyncRequest implements WxXcxRequestUrl, WxX
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getSecurityMediaCheckAsync() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getSecurityMediaCheckAsyncUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -33,7 +33,7 @@ public class WxXcxSecurityMsgSecCheckRequest implements WxXcxRequestUrl, WxXcxRe ...@@ -33,7 +33,7 @@ public class WxXcxSecurityMsgSecCheckRequest implements WxXcxRequestUrl, WxXcxRe
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getSecurityMsgSecCheck() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getSecurityMsgSecCheckUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
- [小程序安全]
- [内容安全]
- [文本内容安全识别](./msgSecCheck.md)
- [音视频内容安全识别](./mediaCheckAsync.md)
...@@ -27,7 +27,7 @@ public class WxXcxCustomerServiceMessageGetTempMediaRequest implements WxXcxRequ ...@@ -27,7 +27,7 @@ public class WxXcxCustomerServiceMessageGetTempMediaRequest implements WxXcxRequ
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getCustomerServiceMessageGetTempMedia() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getCustomerServiceMessageGetTempMediaUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
- [小程序客服]
- [客服消息]
- [获取客服消息内的临时素材](./gettempmedia/getTempMedia.md)
- [发送客服消息给用户](./send/sendCustomMessage.md)
- [下发客服当前输入状态给用户](./settyping/setTyping.md)
- [把媒体文件上传到微信服务器](./uploadtempmedia/uploadTempMedia.md)
...@@ -26,7 +26,7 @@ public class WxXcxCustomerServiceMessageSendRequest implements WxXcxRequestUrl, ...@@ -26,7 +26,7 @@ public class WxXcxCustomerServiceMessageSendRequest implements WxXcxRequestUrl,
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getCustomerServiceMessageSend() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getCustomerServiceMessageSendUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxCustomerServiceMessageSetTypingRequest implements WxXcxRequest ...@@ -26,7 +26,7 @@ public class WxXcxCustomerServiceMessageSetTypingRequest implements WxXcxRequest
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getCustomerServiceMessageSetTyping() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getCustomerServiceMessageSetTypingUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public class WxXcxCustomerServiceMessageUploadTempMediaRequest implements WxXcxR ...@@ -26,7 +26,7 @@ public class WxXcxCustomerServiceMessageUploadTempMediaRequest implements WxXcxR
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getCustomerServiceMessageUploadTempMedia() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getCustomerServiceMessageUploadTempMediaUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
package com.yanzuoguang.wxxcx.start;
import com.yanzuoguang.wxxcx.login.WxXcxAuthCode2SessionReq;
import com.yanzuoguang.wxxcx.login.WxXcxAuthCode2SessionRes;
/**
* 微信登录实现类
*
* @author 颜佐光
*/
public interface WxXcxAuthLogin {
/**
* 登录凭证校验。通过 wx.login 接口获得临时登录凭证 code 后传到开发者服务器调用此接口完成登录流程。更多使用方法详见 小程序登录。
*
* @param wxXcxAuthCode2SessionReq 请求登录
* @return 请求实体
*/
WxXcxAuthCode2SessionRes code2Session(WxXcxAuthCode2SessionReq wxXcxAuthCode2SessionReq);
}
package com.yanzuoguang.wxxcx.start;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataReq;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
*
*
* @author 颜佐光
*/
public interface WxXcxAuthUser {
/**
*
* @param accessToken
* @param req
* @return
*/
WxXcxAuthCheckEncryptedDataRes checkEncryptedData(WxXcxAccessToken accessToken, WxXcxAuthCheckEncryptedDataReq req);
}
package com.yanzuoguang.wxxcx.start.impl;
import com.yanzuoguang.wxxcx.login.WxXcxAuthCode2SessionReq;
import com.yanzuoguang.wxxcx.login.WxXcxAuthCode2SessionRequest;
import com.yanzuoguang.wxxcx.login.WxXcxAuthCode2SessionRes;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.start.WxXcxAuthLogin;
import org.springframework.stereotype.Component;
/**
* 微信小程序登录
*
* @author 颜佐光
*/
@Component
public class WxXcxAuthLoginImpl implements WxXcxAuthLogin {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAuthLoginImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 登录凭证校验。通过 wx.login 接口获得临时登录凭证 code 后传到开发者服务器调用此接口完成登录流程。更多使用方法详见 小程序登录。
*
* @param wxXcxAuthCode2SessionReq 请求登录
* @return
*/
@Override
public WxXcxAuthCode2SessionRes code2Session(WxXcxAuthCode2SessionReq wxXcxAuthCode2SessionReq) {
WxXcxAuthCode2SessionRequest code2SessionRequest = new WxXcxAuthCode2SessionRequest(wxXcxConfig, wxXcxRequest, wxXcxAuthCode2SessionReq);
return code2SessionRequest.getResponse();
}
}
package com.yanzuoguang.wxxcx.start.impl;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataReq;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataRequest;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.start.WxXcxAuthUser;
import org.springframework.stereotype.Component;
/**
* @author 颜佐光
*/
@Component
public class WxXcxAuthUserImpl implements WxXcxAuthUser {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAuthUserImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
@Override
public WxXcxAuthCheckEncryptedDataRes checkEncryptedData(WxXcxAccessToken accessToken, WxXcxAuthCheckEncryptedDataReq req) {
WxXcxAuthCheckEncryptedDataRequest code2SessionRequest = new WxXcxAuthCheckEncryptedDataRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return code2SessionRequest.getResponse();
}
}
...@@ -24,7 +24,7 @@ public class WxXcxAuthGetAccessTokenRequest implements WxXcxRequestUrl, WxXcxReq ...@@ -24,7 +24,7 @@ public class WxXcxAuthGetAccessTokenRequest implements WxXcxRequestUrl, WxXcxReq
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAuthGetAccessToken() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAuthGetAccessTokenUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
- [接口调用凭据](./getAccessToken.md)
\ No newline at end of file
package com.yanzuoguang.wxxcx.user; package com.yanzuoguang.wxxcx.user.checkencrypted;
/** /**
* 检查加密信息是否由微信生成 请求 * 检查加密信息是否由微信生成 请求
......
package com.yanzuoguang.wxxcx.user; package com.yanzuoguang.wxxcx.user.checkencrypted;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import com.yanzuoguang.util.helper.HttpHelper; import com.yanzuoguang.util.helper.HttpHelper;
......
package com.yanzuoguang.wxxcx.user; package com.yanzuoguang.wxxcx.user.checkencrypted;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError; import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
......
package com.yanzuoguang.wxxcx.user.service; package com.yanzuoguang.wxxcx.user.checkencrypted.service;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataReq; import com.yanzuoguang.wxxcx.user.checkencrypted.WxXcxAuthCheckEncryptedDataReq;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataRes; import com.yanzuoguang.wxxcx.user.checkencrypted.WxXcxAuthCheckEncryptedDataRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/** /**
......
package com.yanzuoguang.wxxcx.user.service.impl; package com.yanzuoguang.wxxcx.user.checkencrypted.service.impl;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataReq; import com.yanzuoguang.wxxcx.user.checkencrypted.WxXcxAuthCheckEncryptedDataReq;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataRequest; import com.yanzuoguang.wxxcx.user.checkencrypted.WxXcxAuthCheckEncryptedDataRequest;
import com.yanzuoguang.wxxcx.user.WxXcxAuthCheckEncryptedDataRes; import com.yanzuoguang.wxxcx.user.checkencrypted.WxXcxAuthCheckEncryptedDataRes;
import com.yanzuoguang.wxxcx.user.service.WxXcxAuthCheckEncryptedDataService; import com.yanzuoguang.wxxcx.user.checkencrypted.service.WxXcxAuthCheckEncryptedDataService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig; import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest; import com.yanzuoguang.wxxcx.base.WxXcxRequest;
......
package com.yanzuoguang.wxxcx.user; package com.yanzuoguang.wxxcx.user.getphone;
/** /**
* 获取手机号 请求 * 获取手机号 请求
......
package com.yanzuoguang.wxxcx.user; package com.yanzuoguang.wxxcx.user.getphone;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import com.yanzuoguang.util.helper.HttpHelper; import com.yanzuoguang.util.helper.HttpHelper;
...@@ -26,7 +26,7 @@ public class WxXcxGetPhoneNumberRequest implements WxXcxRequestUrl, WxXcxRequest ...@@ -26,7 +26,7 @@ public class WxXcxGetPhoneNumberRequest implements WxXcxRequestUrl, WxXcxRequest
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getGetPhoneNumber() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getGetPhoneNumberUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
package com.yanzuoguang.wxxcx.user; package com.yanzuoguang.wxxcx.user.getphone;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError; import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
......
package com.yanzuoguang.wxxcx.user.service; package com.yanzuoguang.wxxcx.user.getphone.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.user.WxXcxGetPhoneNumberReq; import com.yanzuoguang.wxxcx.user.getphone.WxXcxGetPhoneNumberReq;
import com.yanzuoguang.wxxcx.user.WxXcxGetPhoneNumberRes; import com.yanzuoguang.wxxcx.user.getphone.WxXcxGetPhoneNumberRes;
/** /**
* 获取手机号 接口 * 获取手机号 接口
......
package com.yanzuoguang.wxxcx.user.service.impl; package com.yanzuoguang.wxxcx.user.getphone.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig; import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest; import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.user.WxXcxGetPhoneNumberReq; import com.yanzuoguang.wxxcx.user.getphone.WxXcxGetPhoneNumberReq;
import com.yanzuoguang.wxxcx.user.WxXcxGetPhoneNumberRequest; import com.yanzuoguang.wxxcx.user.getphone.WxXcxGetPhoneNumberRequest;
import com.yanzuoguang.wxxcx.user.WxXcxGetPhoneNumberRes; import com.yanzuoguang.wxxcx.user.getphone.WxXcxGetPhoneNumberRes;
import com.yanzuoguang.wxxcx.user.service.WxXcxGetPhoneNumberService; import com.yanzuoguang.wxxcx.user.getphone.service.WxXcxGetPhoneNumberService;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
......
package com.yanzuoguang.wxxcx.user; package com.yanzuoguang.wxxcx.user.getpluginpid;
/** /**
* 通过 wx.pluginLogin 接口获得插件用户标志凭证 code 后传到开发者服务器 请求 * 通过 wx.pluginLogin 接口获得插件用户标志凭证 code 后传到开发者服务器 请求
......
package com.yanzuoguang.wxxcx.user; package com.yanzuoguang.wxxcx.user.getpluginpid;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import com.yanzuoguang.util.helper.HttpHelper; import com.yanzuoguang.util.helper.HttpHelper;
...@@ -26,7 +26,7 @@ public class WxXcxAuthGetPluginOpenPidRequest implements WxXcxRequestUrl, WxXcxR ...@@ -26,7 +26,7 @@ public class WxXcxAuthGetPluginOpenPidRequest implements WxXcxRequestUrl, WxXcxR
@Override @Override
public String getUrl() { public String getUrl() {
return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAuthGetPluginOpenPId() + "?" + this.getUrlPara(); return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAuthGetPluginOpenPIdUrl() + "?" + this.getUrlPara();
} }
@Override @Override
......
package com.yanzuoguang.wxxcx.user; package com.yanzuoguang.wxxcx.user.getpluginpid;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError; import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
......
package com.yanzuoguang.wxxcx.user.service; package com.yanzuoguang.wxxcx.user.getpluginpid.service;
import com.yanzuoguang.wxxcx.user.WxXcxAuthGetPluginOpenPidReq; import com.yanzuoguang.wxxcx.user.getpluginpid.WxXcxAuthGetPluginOpenPidReq;
import com.yanzuoguang.wxxcx.user.WxXcxAuthGetPluginOpenPidRes; import com.yanzuoguang.wxxcx.user.getpluginpid.WxXcxAuthGetPluginOpenPidRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken; import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment