Commit 7ab504bc authored by xianjun's avatar xianjun

创建微信小程序接口/实现

parent a97d3dfb
......@@ -5,7 +5,7 @@ import com.yanzuoguang.wxxcx.analysis.data.WxXcxAnalysisGetPerformanceDataRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取小程序启动性能,运行性能等数据 service
* 获取小程序启动性能,运行性能等数据 接口
*
* @author 李贤军
*/
......
package com.yanzuoguang.wxxcx.analysis.data.service;
package com.yanzuoguang.wxxcx.analysis.data.service.impl;
import com.yanzuoguang.wxxcx.analysis.data.WxXcxAnalysisGetPerformanceDataReq;
import com.yanzuoguang.wxxcx.analysis.data.WxXcxAnalysisGetPerformanceDataRequest;
import com.yanzuoguang.wxxcx.analysis.data.WxXcxAnalysisGetPerformanceDataRes;
import com.yanzuoguang.wxxcx.analysis.data.service.WxXcxAnalysisGetPerformanceDataService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取小程序启动性能,运行性能等数据 serviceImpl
* 获取小程序启动性能,运行性能等数据 实现
*
* @author 李贤军
*/
......
......@@ -5,6 +5,8 @@ import com.yanzuoguang.wxxcx.analysis.distribution.WxXcxAnalysisGetVisitDistribu
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取用户小程序访问分布数据 接口
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetVisitDistributionService {
......
......@@ -10,6 +10,8 @@ import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取用户小程序访问分布数据 实现
*
* @author 李贤军
*/
@Component
......
package com.yanzuoguang.wxxcx.analysis.page.service;
import com.yanzuoguang.wxxcx.analysis.page.WxXcxAnalysisGetVisitPageReq;
import com.yanzuoguang.wxxcx.analysis.page.WxXcxAnalysisGetVisitPageRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 访问页面 接口
* 目前只提供按 page_visit_pv 排序的 top200
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetVisitPageService {
/**
* 访问页面
*
* @param accessToken accessToken
* @param req 入参
* @return 访问页面返回
*/
WxXcxAnalysisGetVisitPageRes getAnalysisGetVisitPage(WxXcxAccessToken accessToken, WxXcxAnalysisGetVisitPageReq req);
}
package com.yanzuoguang.wxxcx.analysis.page.service.impl;
import com.yanzuoguang.wxxcx.analysis.page.WxXcxAnalysisGetVisitPageReq;
import com.yanzuoguang.wxxcx.analysis.page.WxXcxAnalysisGetVisitPageRequest;
import com.yanzuoguang.wxxcx.analysis.page.WxXcxAnalysisGetVisitPageRes;
import com.yanzuoguang.wxxcx.analysis.page.service.WxXcxAnalysisGetVisitPageService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 访问页面 实现
* 目前只提供按 page_visit_pv 排序的 top200
*
* @author 李贤军
*/
@Component
public class WxXcxAnalysisGetVisitPageServiceImpl implements WxXcxAnalysisGetVisitPageService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetVisitPageServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 访问页面
*
* @param accessToken accessToken
* @param req 入参
* @return 访问页面返回
*/
@Override
public WxXcxAnalysisGetVisitPageRes getAnalysisGetVisitPage(WxXcxAccessToken accessToken, WxXcxAnalysisGetVisitPageReq req) {
WxXcxAnalysisGetVisitPageRequest request = new WxXcxAnalysisGetVisitPageRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.analysis.portrait.service;
import com.yanzuoguang.wxxcx.analysis.portrait.WxXcxAnalysisGetUserPortraitReq;
import com.yanzuoguang.wxxcx.analysis.portrait.WxXcxAnalysisGetUserPortraitRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取小程序新增或活跃用户的画像分布数据 接口
* 时间范围支持昨天、最近7天、最近30天。其中,新增用户数为时间范围内首次访问小程序的去重用户数,活跃用户数为时间范围内访问过小程序的去重用户数。
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetUserPortraitService {
/**
* 获取小程序新增或活跃用户的画像分布数据
*
* @param accessToken accessToken
* @param req 获取小程序新增或活跃用户的画像分布数据入参
* @return 获取小程序新增或活跃用户的画像分布数据返回
*/
WxXcxAnalysisGetUserPortraitRes getAnalysisGetUserPortrait(WxXcxAccessToken accessToken, WxXcxAnalysisGetUserPortraitReq req);
}
package com.yanzuoguang.wxxcx.analysis.portrait.service.impl;
import com.yanzuoguang.wxxcx.analysis.portrait.WxXcxAnalysisGetUserPortraitReq;
import com.yanzuoguang.wxxcx.analysis.portrait.WxXcxAnalysisGetUserPortraitRequest;
import com.yanzuoguang.wxxcx.analysis.portrait.WxXcxAnalysisGetUserPortraitRes;
import com.yanzuoguang.wxxcx.analysis.portrait.service.WxXcxAnalysisGetUserPortraitService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
/**
* 获取小程序新增或活跃用户的画像分布数据 实现
* 时间范围支持昨天、最近7天、最近30天。其中,新增用户数为时间范围内首次访问小程序的去重用户数,活跃用户数为时间范围内访问过小程序的去重用户数。
*
* @author 李贤军
*/
public class WxXcxAnalysisGetUserPortraitServiceImpl implements WxXcxAnalysisGetUserPortraitService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetUserPortraitServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取小程序新增或活跃用户的画像分布数据
*
* @param accessToken accessToken
* @param req 获取小程序新增或活跃用户的画像分布数据入参
* @return 获取小程序新增或活跃用户的画像分布数据返回
*/
@Override
public WxXcxAnalysisGetUserPortraitRes getAnalysisGetUserPortrait(WxXcxAccessToken accessToken, WxXcxAnalysisGetUserPortraitReq req) {
WxXcxAnalysisGetUserPortraitRequest request = new WxXcxAnalysisGetUserPortraitRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.analysis.retain.service;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetDailyRetainReq;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetDailyRetainRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取用户访问小程序日留存 接口
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetDailyRetainService {
/**
* 获取用户访问小程序日留存
*
* @param accessToken accessToken
* @param req 获取用户访问小程序日留存入参
* @return 获取用户访问小程序日留存 返回
*/
WxXcxAnalysisGetDailyRetainRes getAnalysisGetDailyRetain(WxXcxAccessToken accessToken, WxXcxAnalysisGetDailyRetainReq req);
}
package com.yanzuoguang.wxxcx.analysis.retain.service;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetMonthlyRetainReq;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetMonthlyRetainRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取用户访问小程序月留存 接口
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetMonthlyRetainService {
/**
* 获取用户访问小程序月留存
*
* @param accessToken accessToken
* @param req 获取用户访问小程序月留存入参
* @return 获取用户访问小程序月留存返回
*/
WxXcxAnalysisGetMonthlyRetainRes getAnalysisGetMonthlyRetain(WxXcxAccessToken accessToken, WxXcxAnalysisGetMonthlyRetainReq req);
}
package com.yanzuoguang.wxxcx.analysis.retain.service;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetWeeklyRetainReq;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetWeeklyRetainRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取用户访问小程序周留存 接口
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetWeeklyRetainService {
/**
* 获取用户访问小程序周留存
*
* @param accessToken accessToken
* @param req 获取用户访问小程序周留存请求
* @return 获取用户访问小程序周留存响应
*/
WxXcxAnalysisGetWeeklyRetainRes getAnalysisGetWeeklyRetain(WxXcxAccessToken accessToken, WxXcxAnalysisGetWeeklyRetainReq req);
}
package com.yanzuoguang.wxxcx.analysis.retain.service.impl;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetDailyRetainReq;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetDailyRetainRequest;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetDailyRetainRes;
import com.yanzuoguang.wxxcx.analysis.retain.service.WxXcxAnalysisGetDailyRetainService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取用户访问小程序日留存 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAnalysisGetDailyRetainServiceImpl implements WxXcxAnalysisGetDailyRetainService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetDailyRetainServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取用户访问小程序日留存
*
* @param accessToken accessToken
* @param req 获取用户访问小程序日留存入参
* @return 获取用户访问小程序日留存返回
*/
@Override
public WxXcxAnalysisGetDailyRetainRes getAnalysisGetDailyRetain(WxXcxAccessToken accessToken, WxXcxAnalysisGetDailyRetainReq req) {
WxXcxAnalysisGetDailyRetainRequest request = new WxXcxAnalysisGetDailyRetainRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.analysis.retain.service.impl;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetMonthlyRetainReq;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetMonthlyRetainRequest;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetMonthlyRetainRes;
import com.yanzuoguang.wxxcx.analysis.retain.service.WxXcxAnalysisGetMonthlyRetainService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取用户访问小程序月留存 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAnalysisGetMonthlyRetainServiceImpl implements WxXcxAnalysisGetMonthlyRetainService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetMonthlyRetainServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取用户访问小程序月留存
*
* @param accessToken accessToken
* @param req 获取用户访问小程序月留存入参
* @return 获取用户访问小程序月留存 返回
*/
@Override
public WxXcxAnalysisGetMonthlyRetainRes getAnalysisGetMonthlyRetain(WxXcxAccessToken accessToken, WxXcxAnalysisGetMonthlyRetainReq req) {
WxXcxAnalysisGetMonthlyRetainRequest request = new WxXcxAnalysisGetMonthlyRetainRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.analysis.retain.service.impl;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetWeeklyRetainReq;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetWeeklyRetainRequest;
import com.yanzuoguang.wxxcx.analysis.retain.WxXcxAnalysisGetWeeklyRetainRes;
import com.yanzuoguang.wxxcx.analysis.retain.service.WxXcxAnalysisGetWeeklyRetainService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取用户访问小程序周留存 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAnalysisGetWeeklyRetainServiceImpl implements WxXcxAnalysisGetWeeklyRetainService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetWeeklyRetainServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取用户访问小程序周留存请求
*
* @param accessToken accessToken
* @param req 获取用户访问小程序周留存请求
* @return 获取用户访问小程序周留存请求返回
*/
@Override
public WxXcxAnalysisGetWeeklyRetainRes getAnalysisGetWeeklyRetain(WxXcxAccessToken accessToken, WxXcxAnalysisGetWeeklyRetainReq req) {
WxXcxAnalysisGetWeeklyRetainRequest request = new WxXcxAnalysisGetWeeklyRetainRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.analysis.summary.service;
import com.yanzuoguang.wxxcx.analysis.summary.WxXcxAnalysisGetDailySummaryReq;
import com.yanzuoguang.wxxcx.analysis.summary.WxXcxAnalysisGetDailySummaryRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取用户访问小程序数据概况 接口
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetDailySummaryService {
/**
* 获取用户访问小程序数据概况
*
* @param accessToken accessToken
* @param req 获取用户访问小程序数据概况入参
* @return 获取用户访问小程序数据概况返回
*/
WxXcxAnalysisGetDailySummaryRes getAnalysisGetDailySummary(WxXcxAccessToken accessToken, WxXcxAnalysisGetDailySummaryReq req);
}
package com.yanzuoguang.wxxcx.analysis.summary.service.impl;
import com.yanzuoguang.wxxcx.analysis.summary.WxXcxAnalysisGetDailySummaryReq;
import com.yanzuoguang.wxxcx.analysis.summary.WxXcxAnalysisGetDailySummaryRequest;
import com.yanzuoguang.wxxcx.analysis.summary.WxXcxAnalysisGetDailySummaryRes;
import com.yanzuoguang.wxxcx.analysis.summary.service.WxXcxAnalysisGetDailySummaryService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取用户访问小程序数据概况 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAnalysisGetDailySummaryServiceImpl implements WxXcxAnalysisGetDailySummaryService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetDailySummaryServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取用户访问小程序数据概况
*
* @param accessToken accessToken
* @param req 获取用户访问小程序数据概况入参
* @return 获取用户访问小程序数据概况返回
*/
@Override
public WxXcxAnalysisGetDailySummaryRes getAnalysisGetDailySummary(WxXcxAccessToken accessToken, WxXcxAnalysisGetDailySummaryReq req) {
WxXcxAnalysisGetDailySummaryRequest request = new WxXcxAnalysisGetDailySummaryRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.analysis.trend.service;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetDailyVisitTrendReq;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetDailyVisitTrendRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取用户访问小程序数据日趋势 接口
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetDailyVisitTrendService {
/**
* 获取用户访问小程序数据日趋势
*
* @param accessToken accessToken
* @param req 获取用户访问小程序数据日趋势入参
* @return 获取用户访问小程序数据日趋势 返回
*/
WxXcxAnalysisGetDailyVisitTrendRes getAnalysisGetDailyVisitTrend(WxXcxAccessToken accessToken, WxXcxAnalysisGetDailyVisitTrendReq req);
}
package com.yanzuoguang.wxxcx.analysis.trend.service;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetMonthlyVisitTrendReq;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetMonthlyVisitTrendRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取用户访问小程序数据月趋势 接口
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetMonthlyVisitTrendService {
/**
* 获取用户访问小程序数据月趋势
*
* @param accessToken accessToken
* @param req 获取用户访问小程序数据月趋势 入参
* @return 获取用户访问小程序数据月趋势 返回
*/
WxXcxAnalysisGetMonthlyVisitTrendRes getAnalysisGetMonthlyVisitTrend(WxXcxAccessToken accessToken, WxXcxAnalysisGetMonthlyVisitTrendReq req);
}
package com.yanzuoguang.wxxcx.analysis.trend.service;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetWeeklyVisitTrendReq;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetWeeklyVisitTrendRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取用户访问小程序数据周趋势 接口
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetWeeklyVisitTrendService {
/**
* 获取用户访问小程序数据周趋势
*
* @param accessToken accessToken
* @param req 获取用户访问小程序数据周趋势 入参
* @return 获取用户访问小程序数据周趋势返回
*/
WxXcxAnalysisGetWeeklyVisitTrendRes getAnalysisGetWeeklyVisitTrend(WxXcxAccessToken accessToken, WxXcxAnalysisGetWeeklyVisitTrendReq req);
}
package com.yanzuoguang.wxxcx.analysis.trend.service.impl;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetDailyVisitTrendReq;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetDailyVisitTrendRequest;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetDailyVisitTrendRes;
import com.yanzuoguang.wxxcx.analysis.trend.service.WxXcxAnalysisGetDailyVisitTrendService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取用户访问小程序数据日趋势 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAnalysisGetDailyVisitTrendServiceImpl implements WxXcxAnalysisGetDailyVisitTrendService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetDailyVisitTrendServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取用户访问小程序数据日趋势
*
* @param accessToken accessToken
* @param req 获取用户访问小程序数据日趋势 入参
* @return 获取用户访问小程序数据日趋势返回
*/
@Override
public WxXcxAnalysisGetDailyVisitTrendRes getAnalysisGetDailyVisitTrend(WxXcxAccessToken accessToken, WxXcxAnalysisGetDailyVisitTrendReq req) {
WxXcxAnalysisGetDailyVisitTrendRequest request = new WxXcxAnalysisGetDailyVisitTrendRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.analysis.trend.service.impl;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetMonthlyVisitTrendReq;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetMonthlyVisitTrendRequest;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetMonthlyVisitTrendRes;
import com.yanzuoguang.wxxcx.analysis.trend.service.WxXcxAnalysisGetMonthlyVisitTrendService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取用户访问小程序数据月趋势 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAnalysisGetMonthlyVisitTrendServiceImpl implements WxXcxAnalysisGetMonthlyVisitTrendService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetMonthlyVisitTrendServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取用户访问小程序数据月趋势
*
* @param accessToken accessToken
* @param req 获取用户访问小程序数据月趋势 入参
* @return 获取用户访问小程序数据月趋势返回
*/
@Override
public WxXcxAnalysisGetMonthlyVisitTrendRes getAnalysisGetMonthlyVisitTrend(WxXcxAccessToken accessToken, WxXcxAnalysisGetMonthlyVisitTrendReq req) {
WxXcxAnalysisGetMonthlyVisitTrendRequest request = new WxXcxAnalysisGetMonthlyVisitTrendRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.analysis.trend.service.impl;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetWeeklyVisitTrendReq;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetWeeklyVisitTrendRequest;
import com.yanzuoguang.wxxcx.analysis.trend.WxXcxAnalysisGetWeeklyVisitTrendRes;
import com.yanzuoguang.wxxcx.analysis.trend.service.WxXcxAnalysisGetWeeklyVisitTrendService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取用户访问小程序数据周趋势 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAnalysisGetWeeklyVisitTrendServiceImpl implements WxXcxAnalysisGetWeeklyVisitTrendService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetWeeklyVisitTrendServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取用户访问小程序数据周趋势
*
* @param accessToken accessToken
* @param req 获取用户访问小程序数据周趋势 入参
* @return 获取用户访问小程序数据周趋势 返回
*/
@Override
public WxXcxAnalysisGetWeeklyVisitTrendRes getAnalysisGetWeeklyVisitTrend(WxXcxAccessToken accessToken, WxXcxAnalysisGetWeeklyVisitTrendReq req) {
WxXcxAnalysisGetWeeklyVisitTrendRequest request = new WxXcxAnalysisGetWeeklyVisitTrendRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
......@@ -32,11 +32,11 @@ public class WxXcxAuthCode2SessionRequest implements WxXcxRequestUrl, WxXcxReque
return HttpHelper.getUrlParameter(req);
}
public WxXcxResponseAuthCode2SessionRes getResponse() {
public WxXcxAuthCode2SessionRes getResponse() {
// todo: 检测参数是否合法
// Assert.assertEquals();
return this.wxXcxRequest.request(this, response -> {
WxXcxResponseAuthCode2SessionRes ret = JsonHelper.deserialize(response, new TypeReference<WxXcxResponseAuthCode2SessionRes>() {
WxXcxAuthCode2SessionRes ret = JsonHelper.deserialize(response, new TypeReference<WxXcxAuthCode2SessionRes>() {
});
WxXcxAssert.assertBaseError(ret);
return ret;
......
......@@ -7,7 +7,7 @@ import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
*
* @author 李贤军
*/
public class WxXcxResponseAuthCode2SessionRes extends WxXcxResponseBaseError {
public class WxXcxAuthCode2SessionRes extends WxXcxResponseBaseError {
/**
* 用户唯一标识
*/
......
package com.yanzuoguang.wxxcx.auth.login.service;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionReq;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 登录凭证校验参数 接口
*
* @author 李贤军
*/
public interface WxXcxAuthCode2SessionService {
/**
* 登录凭证校验参数
*
* @param accessToken accessToken
* @param req 登录凭证校验参数 入参
* @return 登录凭证校验参数 返回
*/
WxXcxAuthCode2SessionRes getAuthCode2Session(WxXcxAccessToken accessToken, WxXcxAuthCode2SessionReq req);
}
package com.yanzuoguang.wxxcx.auth.login.service.impl;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionReq;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionRequest;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionRes;
import com.yanzuoguang.wxxcx.auth.login.service.WxXcxAuthCode2SessionService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 登录凭证校验参数 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAuthCode2SessionServiceImpl implements WxXcxAuthCode2SessionService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAuthCode2SessionServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 登录凭证校验参数
*
* @param accessToken accessToken
* @param req 登录凭证校验参数 入参
* @return 登录凭证校验参数返回
*/
@Override
public WxXcxAuthCode2SessionRes getAuthCode2Session(WxXcxAccessToken accessToken, WxXcxAuthCode2SessionReq req) {
WxXcxAuthCode2SessionRequest request = new WxXcxAuthCode2SessionRequest(wxXcxConfig, wxXcxRequest, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.auth.token.service;
import com.yanzuoguang.wxxcx.auth.token.WxXcxAuthGetAccessTokenReq;
import com.yanzuoguang.wxxcx.auth.token.WxXcxAuthGetAccessTokenRes;
/**
* 获取小程序全局唯一后台接口调用凭据 接口
*
* @author 李贤军
*/
public interface WxXcxAuthGetAccessTokenService {
/**
* 获取小程序全局唯一后台接口调用凭据
*
* @param req 获取小程序全局唯一后台接口调用凭据 入参
* @return 获取小程序全局唯一后台接口调用凭据 返回
*/
WxXcxAuthGetAccessTokenRes getAuthGetAccessToken(WxXcxAuthGetAccessTokenReq req);
}
package com.yanzuoguang.wxxcx.auth.token.service.impl;
import com.yanzuoguang.wxxcx.auth.token.WxXcxAuthGetAccessTokenReq;
import com.yanzuoguang.wxxcx.auth.token.WxXcxAuthGetAccessTokenRequest;
import com.yanzuoguang.wxxcx.auth.token.WxXcxAuthGetAccessTokenRes;
import com.yanzuoguang.wxxcx.auth.token.service.WxXcxAuthGetAccessTokenService;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取小程序全局唯一后台接口调用凭据 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAuthGetAccessTokenServiceImpl implements WxXcxAuthGetAccessTokenService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAuthGetAccessTokenServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取小程序全局唯一后台接口调用凭据
*
* @param req 获取小程序全局唯一后台接口调用凭据 入参
* @return 获取小程序全局唯一后台接口调用凭据 返回
*/
@Override
public WxXcxAuthGetAccessTokenRes getAuthGetAccessToken(WxXcxAuthGetAccessTokenReq req) {
WxXcxAuthGetAccessTokenRequest request = new WxXcxAuthGetAccessTokenRequest(wxXcxConfig, wxXcxRequest, req);
return request.getResponse();
}
}
......@@ -14,11 +14,13 @@ public class WxXcxAuthGetPluginOpenPidRequest implements WxXcxRequestUrl, WxXcxR
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
private final WxXcxAccessToken accessToken;
private final WxXcxAuthGetPluginOpenPidReq req;
public WxXcxAuthGetPluginOpenPidRequest(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest, WxXcxAuthGetPluginOpenPidReq req) {
public WxXcxAuthGetPluginOpenPidRequest(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest, WxXcxAccessToken accessToken, WxXcxAuthGetPluginOpenPidReq req) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
this.accessToken = accessToken;
this.req = req;
}
......
package com.yanzuoguang.wxxcx.auth.user.service;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataReq;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 检查加密信息是否由微信生成 接口
*
* @author 李贤军
*/
public interface WxXcxAuthCheckEncryptedDataService {
/**
* 检查加密信息是否由微信生成
*
* @param accessToken accessToken
* @param req 检查加密信息是否由微信生成 入参
* @return 检查加密信息是否由微信生成 返回
*/
WxXcxAuthCheckEncryptedDataRes getAuthCheckEncryptedData(WxXcxAccessToken accessToken, WxXcxAuthCheckEncryptedDataReq req);
}
package com.yanzuoguang.wxxcx.auth.user.service;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPaidUnionIdReq;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPaidUnionIdRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 用户支付完成后,获取该用户的 UnionId 接口
*
* @author 李贤军
*/
public interface WxXcxAuthGetPaidUnionIdService {
/**
* 用户支付完成后,获取该用户的 UnionId
*
* @param accessToken
* @param req 用户支付完成后,获取该用户的 UnionId 入参
* @return 用户支付完成后,获取该用户的 UnionId 返回
*/
WxXcxAuthGetPaidUnionIdRes getAuthGetPaidUnionId(WxXcxAccessToken accessToken, WxXcxAuthGetPaidUnionIdReq req);
}
package com.yanzuoguang.wxxcx.auth.user.service;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPluginOpenPidReq;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPluginOpenPidRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 接口获得插件用户标志凭证 接口
*
* @author 李贤军
*/
public interface WxXcxAuthGetPluginOpenPidService {
/**
* 通过 wx.pluginLogin 接口获得插件用户标志凭证 code 后传到开发者服务器
*
* @param accessToken accessToken
* @param req 接口获得插件用户标志凭证 入参
* @return 接口获得插件用户标志凭证 返回
*/
WxXcxAuthGetPluginOpenPidRes getAuthGetPluginOpenPId(WxXcxAccessToken accessToken, WxXcxAuthGetPluginOpenPidReq req);
}
package com.yanzuoguang.wxxcx.auth.user.service.impl;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataReq;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataRequest;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataRes;
import com.yanzuoguang.wxxcx.auth.user.service.WxXcxAuthCheckEncryptedDataService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* @author 李贤军
*/
@Component
public class WxXcxAuthCheckEncryptedDataServiceImpl implements WxXcxAuthCheckEncryptedDataService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAuthCheckEncryptedDataServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 检查加密信息是否由微信生成
*
* @param accessToken accessToken
* @param req 检查加密信息是否由微信生成 入参
* @return 检查加密信息是否由微信生成 返回
*/
@Override
public WxXcxAuthCheckEncryptedDataRes getAuthCheckEncryptedData(WxXcxAccessToken accessToken, WxXcxAuthCheckEncryptedDataReq req) {
WxXcxAuthCheckEncryptedDataRequest request = new WxXcxAuthCheckEncryptedDataRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.auth.user.service.impl;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPaidUnionIdReq;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPaidUnionIdRequest;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPaidUnionIdRes;
import com.yanzuoguang.wxxcx.auth.user.service.WxXcxAuthGetPaidUnionIdService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 用户支付完成后,获取该用户的 UnionId 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAuthGetPaidUnionIdServiceImpl implements WxXcxAuthGetPaidUnionIdService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAuthGetPaidUnionIdServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 用户支付完成后,获取该用户的 UnionId
*
* @param accessToken
* @param req 用户支付完成后,获取该用户的 UnionId 入参
* @return 用户支付完成后,获取该用户的 UnionId 返回
*/
@Override
public WxXcxAuthGetPaidUnionIdRes getAuthGetPaidUnionId(WxXcxAccessToken accessToken, WxXcxAuthGetPaidUnionIdReq req) {
WxXcxAuthGetPaidUnionIdRequest request = new WxXcxAuthGetPaidUnionIdRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.auth.user.service.impl;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPluginOpenPidReq;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPluginOpenPidRequest;
import com.yanzuoguang.wxxcx.auth.user.WxXcxAuthGetPluginOpenPidRes;
import com.yanzuoguang.wxxcx.auth.user.service.WxXcxAuthGetPluginOpenPidService;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 接口获得插件用户标志凭证 实现
*
* @author 李贤军
*/
@Component
public class WxXcxAuthGetPluginOpenPidServiceImpl implements WxXcxAuthGetPluginOpenPidService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAuthGetPluginOpenPidServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 接口获得插件用户标志凭证
*
* @param accessToken accessToken
* @param req 接口获得插件用户标志凭证 入参
* @return 接口获得插件用户标志凭证 返回
*/
@Override
public WxXcxAuthGetPluginOpenPidRes getAuthGetPluginOpenPId(WxXcxAccessToken accessToken, WxXcxAuthGetPluginOpenPidReq req) {
WxXcxAuthGetPluginOpenPidRequest request = new WxXcxAuthGetPluginOpenPidRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
......@@ -15,11 +15,13 @@ public class WxXcxCustomerServiceMessageGetTempMediaRequest implements WxXcxRequ
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
private final WxXcxAccessToken accessToken;
private final WxXcxCustomerServiceMessageGetTempMediaReq req;
public WxXcxCustomerServiceMessageGetTempMediaRequest(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest, WxXcxCustomerServiceMessageGetTempMediaReq req) {
public WxXcxCustomerServiceMessageGetTempMediaRequest(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest, WxXcxAccessToken accessToken, WxXcxCustomerServiceMessageGetTempMediaReq req) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
this.accessToken = accessToken;
this.req = req;
}
......
package com.yanzuoguang.wxxcx.customerservicemessage.gettempmedia.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.customerservicemessage.gettempmedia.WxXcxCustomerServiceMessageGetTempMediaReq;
import com.yanzuoguang.wxxcx.customerservicemessage.gettempmedia.WxXcxCustomerServiceMessageGetTempMediaRes;
/**
* 获取客服消息内的临时素材 接口
*
* @author 李贤军
*/
public interface WxXcxCustomerServiceMessageGetTempMediaService {
/**
* 获取客服消息内的临时素材
*
* @param accessToken
* @param req 获取客服消息内的临时素材 入参
* @return 获取客服消息内的临时素材返回
*/
WxXcxCustomerServiceMessageGetTempMediaRes getCustomerServiceMessageGetTempMedia(WxXcxAccessToken accessToken, WxXcxCustomerServiceMessageGetTempMediaReq req);
}
package com.yanzuoguang.wxxcx.customerservicemessage.gettempmedia.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.customerservicemessage.gettempmedia.WxXcxCustomerServiceMessageGetTempMediaReq;
import com.yanzuoguang.wxxcx.customerservicemessage.gettempmedia.WxXcxCustomerServiceMessageGetTempMediaRequest;
import com.yanzuoguang.wxxcx.customerservicemessage.gettempmedia.WxXcxCustomerServiceMessageGetTempMediaRes;
import com.yanzuoguang.wxxcx.customerservicemessage.gettempmedia.service.WxXcxCustomerServiceMessageGetTempMediaService;
import org.springframework.stereotype.Component;
/**
* 获取客服消息内的临时素材 实现
*
* @author 李贤军
*/
@Component
public class WxXcxCustomerServiceMessageGetTempMediaServiceImpl implements WxXcxCustomerServiceMessageGetTempMediaService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxCustomerServiceMessageGetTempMediaServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取客服消息内的临时素材
*
* @param accessToken accessToken
* @param req 获取客服消息内的临时素材 入参
* @return 获取客服消息内的临时素材 返回
*/
@Override
public WxXcxCustomerServiceMessageGetTempMediaRes getCustomerServiceMessageGetTempMedia(WxXcxAccessToken accessToken, WxXcxCustomerServiceMessageGetTempMediaReq req) {
WxXcxCustomerServiceMessageGetTempMediaRequest request = new WxXcxCustomerServiceMessageGetTempMediaRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.customerservicemessage.send.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.customerservicemessage.send.WxXcxCustomerServiceMessageSendReq;
import com.yanzuoguang.wxxcx.customerservicemessage.send.WxXcxCustomerServiceMessageSendRes;
/**
* 发送客服消息给用户 接口
*
* @author 李贤军
*/
public interface WxXcxCustomerServiceMessageSendService {
/**
* 发送客服消息给用户
*
* @param accessToken accessToken
* @param req 发送客服消息给用户 入参
* @return 发送客服消息给用户 返回
*/
WxXcxCustomerServiceMessageSendRes getCustomerServiceMessageSend(WxXcxAccessToken accessToken, WxXcxCustomerServiceMessageSendReq req);
}
package com.yanzuoguang.wxxcx.customerservicemessage.send.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.customerservicemessage.send.WxXcxCustomerServiceMessageSendReq;
import com.yanzuoguang.wxxcx.customerservicemessage.send.WxXcxCustomerServiceMessageSendRequest;
import com.yanzuoguang.wxxcx.customerservicemessage.send.WxXcxCustomerServiceMessageSendRes;
import com.yanzuoguang.wxxcx.customerservicemessage.send.service.WxXcxCustomerServiceMessageSendService;
import org.springframework.stereotype.Component;
/**
* 发送客服消息给用户 实现
*
* @author 李贤军
*/
@Component
public class WxXcxCustomerServiceMessageSendServiceImpl implements WxXcxCustomerServiceMessageSendService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxCustomerServiceMessageSendServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 发送客服消息给用户
*
* @param accessToken accessToken
* @param req 发送客服消息给用户 入参
* @return 发送客服消息给用户 返回
*/
@Override
public WxXcxCustomerServiceMessageSendRes getCustomerServiceMessageSend(WxXcxAccessToken accessToken, WxXcxCustomerServiceMessageSendReq req) {
WxXcxCustomerServiceMessageSendRequest request = new WxXcxCustomerServiceMessageSendRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.customerservicemessage.settyping.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.customerservicemessage.settyping.WxXcxCustomerServiceMessageSetTypingReq;
import com.yanzuoguang.wxxcx.customerservicemessage.settyping.WxXcxCustomerServiceMessageSetTypingRes;
/**
* 下发客服当前输入状态给用户 接口
*
* @author 李贤军
*/
public interface WxXcxCustomerServiceMessageSetTypingService {
/**
* 下发客服当前输入状态给用户
*
* @param accessToken accessToken
* @param req 下发客服当前输入状态给用户 入参
* @return 下发客服当前输入状态给用户 返回
*/
WxXcxCustomerServiceMessageSetTypingRes getCustomerServiceMessageSetTyping(WxXcxAccessToken accessToken, WxXcxCustomerServiceMessageSetTypingReq req);
}
package com.yanzuoguang.wxxcx.customerservicemessage.settyping.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.customerservicemessage.settyping.WxXcxCustomerServiceMessageSetTypingReq;
import com.yanzuoguang.wxxcx.customerservicemessage.settyping.WxXcxCustomerServiceMessageSetTypingRequest;
import com.yanzuoguang.wxxcx.customerservicemessage.settyping.WxXcxCustomerServiceMessageSetTypingRes;
import com.yanzuoguang.wxxcx.customerservicemessage.settyping.service.WxXcxCustomerServiceMessageSetTypingService;
import org.springframework.stereotype.Component;
/**
* 下发客服当前输入状态给用户 实现
*
* @author 李贤军
*/
@Component
public class WxXcxCustomerServiceMessageSetTypingServiceImpl implements WxXcxCustomerServiceMessageSetTypingService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxCustomerServiceMessageSetTypingServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 下发客服当前输入状态给用户
*
* @param accessToken accessToken
* @param req 下发客服当前输入状态给用户 入参
* @return 下发客服当前输入状态给用户 返回
*/
@Override
public WxXcxCustomerServiceMessageSetTypingRes getCustomerServiceMessageSetTyping(WxXcxAccessToken accessToken, WxXcxCustomerServiceMessageSetTypingReq req) {
WxXcxCustomerServiceMessageSetTypingRequest request = new WxXcxCustomerServiceMessageSetTypingRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
......@@ -6,6 +6,8 @@ import com.yanzuoguang.util.helper.JsonHelper;
import com.yanzuoguang.wxxcx.base.*;
/**
* 把媒体文件上传到微信服务器 转换
*
* @author 李贤军
*/
public class WxXcxCustomerServiceMessageUploadTempMediaRequest implements WxXcxRequestUrl, WxXcxRequestUrlPara, WxXcxRequestPostFormData {
......
......@@ -3,6 +3,8 @@ package com.yanzuoguang.wxxcx.customerservicemessage.uploadtempmedia;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
/**
* 把媒体文件上传到微信服务器 响应
*
* @author 李贤军
*/
public class WxXcxCustomerServiceMessageUploadTempMediaRes extends WxXcxResponseBaseError {
......
package com.yanzuoguang.wxxcx.customerservicemessage.uploadtempmedia.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.customerservicemessage.uploadtempmedia.WxXcxCustomerServiceMessageUploadTempMediaReq;
import com.yanzuoguang.wxxcx.customerservicemessage.uploadtempmedia.WxXcxCustomerServiceMessageUploadTempMediaRes;
/**
* 把媒体文件上传到微信服务器 接口
*
* @author 李贤军
*/
public interface WxXcxCustomerServiceMessageUploadTempMediaService {
/**
* 把媒体文件上传到微信服务器
*
* @param accessToken accessToken
* @param req 把媒体文件上传到微信服务器 入参
* @return 把媒体文件上传到微信服务器 返回
*/
WxXcxCustomerServiceMessageUploadTempMediaRes getCustomerServiceMessageUploadTempMedia(WxXcxAccessToken accessToken, WxXcxCustomerServiceMessageUploadTempMediaReq req);
}
package com.yanzuoguang.wxxcx.customerservicemessage.uploadtempmedia.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.customerservicemessage.uploadtempmedia.WxXcxCustomerServiceMessageUploadTempMediaReq;
import com.yanzuoguang.wxxcx.customerservicemessage.uploadtempmedia.WxXcxCustomerServiceMessageUploadTempMediaRequest;
import com.yanzuoguang.wxxcx.customerservicemessage.uploadtempmedia.WxXcxCustomerServiceMessageUploadTempMediaRes;
import com.yanzuoguang.wxxcx.customerservicemessage.uploadtempmedia.service.WxXcxCustomerServiceMessageUploadTempMediaService;
import org.springframework.stereotype.Component;
/**
* 把媒体文件上传到微信服务器 实现
*
* @author 李贤军
*/
@Component
public class WxXcxCustomerServiceMessageUploadTempMediaServiceImpl implements WxXcxCustomerServiceMessageUploadTempMediaService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxCustomerServiceMessageUploadTempMediaServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 把媒体文件上传到微信服务器
*
* @param accessToken accessToken
* @param req 把媒体文件上传到微信服务器 入参
* @return 把媒体文件上传到微信服务器 返回
*/
@Override
public WxXcxCustomerServiceMessageUploadTempMediaRes getCustomerServiceMessageUploadTempMedia(WxXcxAccessToken accessToken, WxXcxCustomerServiceMessageUploadTempMediaReq req) {
WxXcxCustomerServiceMessageUploadTempMediaRequest request = new WxXcxCustomerServiceMessageUploadTempMediaRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.nearbypoi;
/**
* 添加地点
*
* @author 李贤军
*/
public class WxXcxNearbyPoiAddReq {
/**
* 接口调用凭证
* 接口调用凭证
*/
private String access_token;
/**
* 必填,写死为"1"
* 必填,写死为"1"
*/
private String is_comm_nearby;
/**
* 门店图片,最多9张,最少1张,上传门店图片如门店外景、环境设施、商品服务等,图片将展示在微信客户端的门店页。图片链接通过文档https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1444738729中的《上传图文消息内的图片获取URL》接口获取。必填,文件格式为bmp、png、jpeg、jpg或gif,大小不超过5M pic_list是字符串,内容是一个json
* 门店图片,最多9张,最少1张,上传门店图片如门店外景、环境设施、商品服务等,图片将展示在微信客户端的门店页。图片链接通过文档https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1444738729中的《上传图文消息内的图片获取URL》接口获取。必填,文件格式为bmp、png、jpeg、jpg或gif,大小不超过5M pic_list是字符串,内容是一个json
*/
private String pic_list;
/**
* 必服务标签列表 必填,需要填写
* 必服务标签列表 必填,需要填写
* 1、 服务标签ID
* 2、 服务类型tpye
* 3、 服务名称name
......@@ -29,43 +31,43 @@ public class WxXcxNearbyPoiAddReq {
*/
private String service_infos;
/**
* 客服信息 选填,可自定义服务头像与昵称,具体填写字段见下方示例kf_info pic_list是字符串,内容是一个json
* 客服信息 选填,可自定义服务头像与昵称,具体填写字段见下方示例kf_info pic_list是字符串,内容是一个json
*/
private String kf_info;
/**
* 门店名字 必填,门店名称需按照所选地理位置自动拉取腾讯地图门店名称,不可修改,如需修改请重现选择地图地点或重新创建地点。
* 门店名字 必填,门店名称需按照所选地理位置自动拉取腾讯地图门店名称,不可修改,如需修改请重现选择地图地点或重新创建地点。
*/
private String store_name;
/**
* 营业时间,格式11:11-12:12 必填
* 营业时间,格式11:11-12:12 必填
*/
private String hour;
/**
* 地址 必填
* 地址 必填
*/
private String address;
/**
* 如果创建新的门店,poi_id字段为空 如果更新门店,poi_id参数则填对应门店的poi_id 选填
* 如果创建新的门店,poi_id字段为空 如果更新门店,poi_id参数则填对应门店的poi_id 选填
*/
private String poi_id;
/**
* 主体名字 必填
* 主体名字 必填
*/
private String company_name;
/**
* 门店电话 必填
* 门店电话 必填
*/
private String contract_phone;
/**
* 资质号 必填, 15位营业执照注册号或9位组织机构代码
* 资质号 必填, 15位营业执照注册号或9位组织机构代码
*/
private String credential;
/**
* 证明材料 必填 如果company_name和该小程序主体不一致,需要填qualification_list,详细规则见附近的小程序使用指南 - 如何证明门店的经营主体跟公众号或小程序帐号主体相关http://kf.qq.com/faq/170401MbUnim17040122m2qY.html
* 证明材料 必填 如果company_name和该小程序主体不一致,需要填qualification_list,详细规则见附近的小程序使用指南 - 如何证明门店的经营主体跟公众号或小程序帐号主体相关http://kf.qq.com/faq/170401MbUnim17040122m2qY.html
*/
private String qualification_list;
/**
* 对应《在腾讯地图中搜索门店》中的sosomap_poi_uid字段 腾讯地图那边有些数据不一致,如果不填map_poi_id的话,小概率会提交失败!
* 对应《在腾讯地图中搜索门店》中的sosomap_poi_uid字段 腾讯地图那边有些数据不一致,如果不填map_poi_id的话,小概率会提交失败!
* 注:
* poi_id与map_poi_id关系:
* map_poi_id是腾讯地图对于 poi 的唯一标识
......
......@@ -6,6 +6,8 @@ import com.yanzuoguang.util.helper.JsonHelper;
import com.yanzuoguang.wxxcx.base.*;
/**
* 添加地点
*
* @author 李贤军
*/
public class WxXcxNearbyPoiAddRequest implements WxXcxRequestUrl, WxXcxRequestUrlPara, WxXcxRequestPostFormData {
......
......@@ -3,6 +3,8 @@ package com.yanzuoguang.wxxcx.nearbypoi;
import com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError;
/**
* 添加地点
*
* @author 李贤军
*/
public class WxXcxNearbyPoiAddRes extends WxXcxResponseBaseError {
......
package com.yanzuoguang.wxxcx.nearbypoi.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiAddReq;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiAddRes;
/**
* 添加地点
*
* @author 李贤军
*/
public interface WxXcxNearbyPoiAddService {
/**
* 添加地点
*
* @param accessToken accessToken
* @param req 添加地点 请求
* @return 添加地点 返回
*/
WxXcxNearbyPoiAddRes getNearbyPoiAdd(WxXcxAccessToken accessToken, WxXcxNearbyPoiAddReq req);
}
package com.yanzuoguang.wxxcx.nearbypoi.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiDeleteReq;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiDeleteRes;
/**
* 删除地点
*
* @author 李贤军
*/
public interface WxXcxNearbyPoiDeleteService {
/**
* 删除地点
*
* @param accessToken
* @param req 删除地点 入参
* @return 删除地点 返回
*/
WxXcxNearbyPoiDeleteRes getNearbyPoiDelete(WxXcxAccessToken accessToken, WxXcxNearbyPoiDeleteReq req);
}
package com.yanzuoguang.wxxcx.nearbypoi.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListReq;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListRes;
/**
* 查看地点列表
*
* @author 李贤军
*/
public interface WxXcxNearbyPoiGetListService {
/**
* 查看地点列表
*
* @param accessToken accessToken
* @param req 查看地点列表 入参
* @return 查看地点列表 返回
*/
WxXcxNearbyPoiGetListRes getNearbyPoiGetList(WxXcxAccessToken accessToken, WxXcxNearbyPoiGetListReq req);
}
package com.yanzuoguang.wxxcx.nearbypoi.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListReq;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListRes;
/**
* 展示/取消展示附近小程序 接口
*
* @author 李贤军
*/
public interface WxXcxNearbyPoiSetShowStatusService {
/**
* 展示/取消展示附近小程序
*
* @param accessToken accessToken
* @param req 展示/取消展示附近小程序 入参
* @return 展示/取消展示附近小程序 返回
*/
WxXcxNearbyPoiGetListRes getNearbyPoiSetShowStatus(WxXcxAccessToken accessToken, WxXcxNearbyPoiGetListReq req);
}
package com.yanzuoguang.wxxcx.nearbypoi.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiAddReq;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiAddRequest;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiAddRes;
import com.yanzuoguang.wxxcx.nearbypoi.service.WxXcxNearbyPoiAddService;
import org.springframework.stereotype.Component;
/**
* 添加地点 实现
*
* @author 李贤军
*/
@Component
public class WxXcxNearbyPoiAddServiceImpl implements WxXcxNearbyPoiAddService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxNearbyPoiAddServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 添加地点
*
* @param accessToken accessToken
* @param req 添加地点 请求
* @return 添加地点 返回
*/
@Override
public WxXcxNearbyPoiAddRes getNearbyPoiAdd(WxXcxAccessToken accessToken, WxXcxNearbyPoiAddReq req) {
WxXcxNearbyPoiAddRequest request = new WxXcxNearbyPoiAddRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.nearbypoi.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiDeleteReq;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiDeleteRequest;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiDeleteRes;
import com.yanzuoguang.wxxcx.nearbypoi.service.WxXcxNearbyPoiDeleteService;
import org.springframework.stereotype.Component;
/**
* 删除地点 实现
*
* @author 李贤军
*/
@Component
public class WxXcxNearbyPoiDeleteServiceImpl implements WxXcxNearbyPoiDeleteService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxNearbyPoiDeleteServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 删除地点
*
* @param accessToken
* @param req 删除地点 入参
* @return 删除地点 返回
*/
@Override
public WxXcxNearbyPoiDeleteRes getNearbyPoiDelete(WxXcxAccessToken accessToken, WxXcxNearbyPoiDeleteReq req) {
WxXcxNearbyPoiDeleteRequest request = new WxXcxNearbyPoiDeleteRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.nearbypoi.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListReq;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListRequest;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListRes;
import com.yanzuoguang.wxxcx.nearbypoi.service.WxXcxNearbyPoiGetListService;
import org.springframework.stereotype.Component;
/**
* 查看地点列表 实现
*
* @author 李贤军
*/
@Component
public class WxXcxNearbyPoiGetListServiceImpl implements WxXcxNearbyPoiGetListService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxNearbyPoiGetListServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 查看地点列表
*
* @param accessToken accessToken
* @param req 查看地点列表 入参
* @return 查看地点列表 返回
*/
@Override
public WxXcxNearbyPoiGetListRes getNearbyPoiGetList(WxXcxAccessToken accessToken, WxXcxNearbyPoiGetListReq req) {
WxXcxNearbyPoiGetListRequest request = new WxXcxNearbyPoiGetListRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.nearbypoi.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListReq;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListRequest;
import com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiGetListRes;
import com.yanzuoguang.wxxcx.nearbypoi.service.WxXcxNearbyPoiSetShowStatusService;
import org.springframework.stereotype.Component;
/**
* 展示/取消展示附近小程序 实现
*
* @author 李贤军
*/
@Component
public class WxXcxNearbyPoiSetShowStatusServiceImpl implements WxXcxNearbyPoiSetShowStatusService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxNearbyPoiSetShowStatusServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 展示/取消展示附近小程序
*
* @param accessToken accessToken
* @param req 展示/取消展示附近小程序 入参
* @return 展示/取消展示附近小程序 返回
*/
@Override
public WxXcxNearbyPoiGetListRes getNearbyPoiSetShowStatus(WxXcxAccessToken accessToken, WxXcxNearbyPoiGetListReq req) {
WxXcxNearbyPoiGetListRequest request = new WxXcxNearbyPoiGetListRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.openapimanage;
/**
* 查询 RID 信息 request
*
* @author 李贤军
*/
public class WxXcxOpenApiManageGetRidInfoRequestRes {
......
package com.yanzuoguang.wxxcx.openapimanage.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageClearQuotaReq;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageClearQuotaRes;
/**
* 重置 API 调用次数 接口
*
* @author 李贤军
*/
public interface WxXcxOpenApiManageClearQuotaService {
/**
* 重置 API 调用次数
*
* @param accessToken accessToken
* @param req 重置 API 调用次数 入参
* @return 重置 API 调用次数 返回
*/
WxXcxOpenApiManageClearQuotaRes getClearQuota(WxXcxAccessToken accessToken, WxXcxOpenApiManageClearQuotaReq req);
}
package com.yanzuoguang.wxxcx.openapimanage.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetApiQuotaReq;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetApiQuotaRes;
/**
* 查询 API 调用额度 接口
*
* @author 李贤军
*/
public interface WxXcxOpenApiManageGetApiQuotaService {
/**
* 查询 API 调用额度
*
* @param accessToken accessToken
* @param req 查询 API 调用额度 入参
* @return 查询 API 调用额度 返回
*/
WxXcxOpenApiManageGetApiQuotaRes getGetApiQuota(WxXcxAccessToken accessToken, WxXcxOpenApiManageGetApiQuotaReq req);
}
package com.yanzuoguang.wxxcx.openapimanage.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetRidInfoReq;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetRidInfoRes;
/**
* 查询 RID 信息 接口
*
* @author 李贤军
*/
public interface WxXcxOpenApiManageGetRidInfoService {
/**
* 查询 RID 信息
*
* @param accessToken accessToken
* @param req 查询 RID 信息 入参
* @return 查询 RID 信息 返回
*/
WxXcxOpenApiManageGetRidInfoRes getGetRidInfo(WxXcxAccessToken accessToken, WxXcxOpenApiManageGetRidInfoReq req);
}
package com.yanzuoguang.wxxcx.openapimanage.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageClearQuotaReq;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageClearQuotaRequest;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageClearQuotaRes;
import com.yanzuoguang.wxxcx.openapimanage.service.WxXcxOpenApiManageClearQuotaService;
import org.springframework.stereotype.Component;
/**
* 重置 API 调用次数 实现
*
* @author 李贤军
*/
@Component
public class WxXcxOpenApiManageClearQuotaServiceImpl implements WxXcxOpenApiManageClearQuotaService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxOpenApiManageClearQuotaServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 重置 API 调用次数
*
* @param accessToken accessToken
* @param req 重置 API 调用次数 入参
* @return 重置 API 调用次数 返回
*/
@Override
public WxXcxOpenApiManageClearQuotaRes getClearQuota(WxXcxAccessToken accessToken, WxXcxOpenApiManageClearQuotaReq req) {
WxXcxOpenApiManageClearQuotaRequest request = new WxXcxOpenApiManageClearQuotaRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.openapimanage.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetApiQuotaReq;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetApiQuotaRequest;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetApiQuotaRes;
import com.yanzuoguang.wxxcx.openapimanage.service.WxXcxOpenApiManageGetApiQuotaService;
import org.springframework.stereotype.Component;
/**
* 查询 API 调用额度 实现
*
* @author 李贤军
*/
@Component
public class WxXcxOpenApiManageGetApiQuotaServiceImpl implements WxXcxOpenApiManageGetApiQuotaService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxOpenApiManageGetApiQuotaServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 查询 API 调用额度
*
* @param accessToken accessToken
* @param req 查询 API 调用额度 入参
* @return 查询 API 调用额度 返回
*/
@Override
public WxXcxOpenApiManageGetApiQuotaRes getGetApiQuota(WxXcxAccessToken accessToken, WxXcxOpenApiManageGetApiQuotaReq req) {
WxXcxOpenApiManageGetApiQuotaRequest request = new WxXcxOpenApiManageGetApiQuotaRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.openapimanage.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetRidInfoReq;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetRidInfoRequest;
import com.yanzuoguang.wxxcx.openapimanage.WxXcxOpenApiManageGetRidInfoRes;
import com.yanzuoguang.wxxcx.openapimanage.service.WxXcxOpenApiManageGetRidInfoService;
import org.springframework.stereotype.Component;
/**
* 查询 RID 信息 实现
*
* @author 李贤军
*/
@Component
public class WxXcxOpenApiManageGetRidInfoServiceImpl implements WxXcxOpenApiManageGetRidInfoService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxOpenApiManageGetRidInfoServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 查询 RID 信息
*
* @param accessToken accessToken
* @param req 查询 RID 信息 入参
* @return 查询 RID 信息 返回
*/
@Override
public WxXcxOpenApiManageGetRidInfoRes getGetRidInfo(WxXcxAccessToken accessToken, WxXcxOpenApiManageGetRidInfoReq req) {
WxXcxOpenApiManageGetRidInfoRequest request = new WxXcxOpenApiManageGetRidInfoRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.pluginmanager.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginRes;
/**
* 向插件开发者发起使用插件的申请 接口
*
* @author 李贤军
*/
public interface WxXcxPluginManagerApplyPluginService {
/**
* 向插件开发者发起使用插件的申请
*
* @param accessToken accessToken
* @param req 向插件开发者发起使用插件的申请 入参
* @return 向插件开发者发起使用插件的申请 返回
*/
WxXcxPluginManagerApplyPluginRes getPluginManagerApplyPlugin(WxXcxAccessToken accessToken, WxXcxPluginManagerApplyPluginReq req);
}
package com.yanzuoguang.wxxcx.pluginmanager.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListRes;
/**
* 查询已添加的插件 接口
*
* @author 李贤军
*/
public interface WxXcxPluginManagerGetPluginListService {
/**
* 查询已添加的插件
*
* @param accessToken accessToken
* @param req 查询已添加的插件 入参
* @return 查询已添加的插件 返回
*/
WxXcxPluginManagerGetPluginListRes getPluginManagerGetPluginList(WxXcxAccessToken accessToken, WxXcxPluginManagerGetPluginListReq req);
}
package com.yanzuoguang.wxxcx.pluginmanager.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusRes;
/**
* 修改插件使用申请的状态 接口
*
* @author 李贤军
*/
public interface WxXcxPluginManagerSetDevPluginApplyStatusService {
/**
* 修改插件使用申请的状态
*
* @param accessToken accessToken
* @param req 修改插件使用申请的状态 请求
* @return 修改插件使用申请的状态 返回
*/
WxXcxPluginManagerSetDevPluginApplyStatusRes getPluginManagerSetDevPluginApplyStatus(WxXcxAccessToken accessToken, WxXcxPluginManagerSetDevPluginApplyStatusReq req);
}
package com.yanzuoguang.wxxcx.pluginmanager.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginRes;
/**
* 删除已添加的插件 接口
*
* @author 李贤军
*/
public interface WxXcxPluginManagerUnbindPluginService {
/**
* 删除已添加的插件
*
* @param accessToken accessToken
* @param req 删除已添加的插件 入参
* @return 删除已添加的插件 返回
*/
WxXcxPluginManagerUnbindPluginRes getPluginManagerUnbindPlugin(WxXcxAccessToken accessToken, WxXcxPluginManagerUnbindPluginReq req);
}
package com.yanzuoguang.wxxcx.pluginmanager.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListRes;
/**
* 获取当前所有插件使用方 接口
*
* @author 李贤军
*/
public interface WxXxcPluginManagerGetPluginDevApplyListService {
/**
* 获取当前所有插件使用方
*
* @param accessToken accessToken
* @param req 获取当前所有插件使用方 入参
* @return 获取当前所有插件使用方 返回
*/
WxXxcPluginManagerGetPluginDevApplyListRes getPluginManagerGetPluginDevApplyList(WxXcxAccessToken accessToken, WxXxcPluginManagerGetPluginDevApplyListReq req);
}
package com.yanzuoguang.wxxcx.pluginmanager.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerApplyPluginRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXcxPluginManagerApplyPluginService;
import org.springframework.stereotype.Component;
/**
* 向插件开发者发起使用插件的申请 实现
*
* @author 李贤军
*/
@Component
public class WxXcxPluginManagerApplyPluginServiceImpl implements WxXcxPluginManagerApplyPluginService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxPluginManagerApplyPluginServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 向插件开发者发起使用插件的申请
*
* @param accessToken accessToken
* @param req 向插件开发者发起使用插件的申请 入参
* @return 向插件开发者发起使用插件的申请 返回
*/
@Override
public WxXcxPluginManagerApplyPluginRes getPluginManagerApplyPlugin(WxXcxAccessToken accessToken, WxXcxPluginManagerApplyPluginReq req) {
WxXcxPluginManagerApplyPluginRequest request = new WxXcxPluginManagerApplyPluginRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.pluginmanager.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerGetPluginListRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXcxPluginManagerGetPluginListService;
import org.springframework.stereotype.Component;
/**
* 查询已添加的插件 实现
*
* @author 李贤军
*/
@Component
public class WxXcxPluginManagerGetPluginListServiceImpl implements WxXcxPluginManagerGetPluginListService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxPluginManagerGetPluginListServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 查询已添加的插件
*
* @param accessToken accessToken
* @param req 查询已添加的插件 入参
* @return 查询已添加的插件 返回
*/
@Override
public WxXcxPluginManagerGetPluginListRes getPluginManagerGetPluginList(WxXcxAccessToken accessToken, WxXcxPluginManagerGetPluginListReq req) {
WxXcxPluginManagerGetPluginListRequest request = new WxXcxPluginManagerGetPluginListRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.pluginmanager.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerSetDevPluginApplyStatusRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXcxPluginManagerSetDevPluginApplyStatusService;
import org.springframework.stereotype.Component;
/**
* 修改插件使用申请的状态
*
* @author 李贤军
*/
@Component
public class WxXcxPluginManagerSetDevPluginApplyStatusServiceImpl implements WxXcxPluginManagerSetDevPluginApplyStatusService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxPluginManagerSetDevPluginApplyStatusServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 修改插件使用申请的状态
*
* @param accessToken accessToken
* @param req 修改插件使用申请的状态 请求
* @return 修改插件使用申请的状态 返回
*/
@Override
public WxXcxPluginManagerSetDevPluginApplyStatusRes getPluginManagerSetDevPluginApplyStatus(WxXcxAccessToken accessToken, WxXcxPluginManagerSetDevPluginApplyStatusReq req) {
WxXcxPluginManagerSetDevPluginApplyStatusRequest request = new WxXcxPluginManagerSetDevPluginApplyStatusRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.pluginmanager.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXcxPluginManagerUnbindPluginRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXcxPluginManagerUnbindPluginService;
import org.springframework.stereotype.Component;
/**
* 删除已添加的插件
*
* @author 李贤军
*/
@Component
public class WxXcxPluginManagerUnbindPluginServiceImpl implements WxXcxPluginManagerUnbindPluginService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxPluginManagerUnbindPluginServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 删除已添加的插件
*
* @param accessToken accessToken
* @param req 删除已添加的插件 入参
* @return 删除已添加的插件 返回
*/
@Override
public WxXcxPluginManagerUnbindPluginRes getPluginManagerUnbindPlugin(WxXcxAccessToken accessToken, WxXcxPluginManagerUnbindPluginReq req) {
WxXcxPluginManagerUnbindPluginRequest request = new WxXcxPluginManagerUnbindPluginRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.pluginmanager.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListReq;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListRequest;
import com.yanzuoguang.wxxcx.pluginmanager.WxXxcPluginManagerGetPluginDevApplyListRes;
import com.yanzuoguang.wxxcx.pluginmanager.service.WxXxcPluginManagerGetPluginDevApplyListService;
import org.springframework.stereotype.Component;
/**
* 获取当前所有插件使用方 实现
*
* @author 李贤军
*/
@Component
public class WxXxcPluginManagerGetPluginDevApplyListServiceImpl implements WxXxcPluginManagerGetPluginDevApplyListService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXxcPluginManagerGetPluginDevApplyListServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取当前所有插件使用方
*
* @param accessToken accessToken
* @param req 获取当前所有插件使用方 入参
* @return 获取当前所有插件使用方 返回
*/
@Override
public WxXxcPluginManagerGetPluginDevApplyListRes getPluginManagerGetPluginDevApplyList(WxXcxAccessToken accessToken, WxXxcPluginManagerGetPluginDevApplyListReq req) {
WxXxcPluginManagerGetPluginDevApplyListRequest request = new WxXxcPluginManagerGetPluginDevApplyListRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.redpacketcover.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.redpacketcover.WxXcxRedPacketCoverGetAuthenticationUrlReq;
import com.yanzuoguang.wxxcx.redpacketcover.WxXcxRedPacketCoverGetAuthenticationUrlRes;
/**
* 本接口用于获得指定用户可以领取的红包封面链接 接口
*
* @author 李贤军
*/
public interface WxXcxRedPacketCoverGetAuthenticationUrlService {
/**
* 本接口用于获得指定用户可以领取的红包封面链接
*
* @param accessToken accessToken
* @param req 本接口用于获得指定用户可以领取的红包封面链接 入参
* @return 本接口用于获得指定用户可以领取的红包封面链接 返回
*/
WxXcxRedPacketCoverGetAuthenticationUrlRes getRedPacketCoverGetAuthenticationUrl(WxXcxAccessToken accessToken, WxXcxRedPacketCoverGetAuthenticationUrlReq req);
}
package com.yanzuoguang.wxxcx.redpacketcover.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.redpacketcover.WxXcxRedPacketCoverGetAuthenticationUrlReq;
import com.yanzuoguang.wxxcx.redpacketcover.WxXcxRedPacketCoverGetAuthenticationUrlRequest;
import com.yanzuoguang.wxxcx.redpacketcover.WxXcxRedPacketCoverGetAuthenticationUrlRes;
import com.yanzuoguang.wxxcx.redpacketcover.service.WxXcxRedPacketCoverGetAuthenticationUrlService;
import org.springframework.stereotype.Component;
/**
* 本接口用于获得指定用户可以领取的红包封面链接 实现
*
* @author 李贤军
*/
@Component
public class WxXcxRedPacketCoverGetAuthenticationUrlServiceImpl implements WxXcxRedPacketCoverGetAuthenticationUrlService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxRedPacketCoverGetAuthenticationUrlServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 本接口用于获得指定用户可以领取的红包封面链接
*
* @param accessToken accessToken
* @param req 本接口用于获得指定用户可以领取的红包封面链接 入参
* @return 本接口用于获得指定用户可以领取的红包封面链接 返回
*/
@Override
public WxXcxRedPacketCoverGetAuthenticationUrlRes getRedPacketCoverGetAuthenticationUrl(WxXcxAccessToken accessToken, WxXcxRedPacketCoverGetAuthenticationUrlReq req) {
WxXcxRedPacketCoverGetAuthenticationUrlRequest request = new WxXcxRedPacketCoverGetAuthenticationUrlRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.security.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMediaCheckAsyncReq;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMediaCheckAsyncRes;
/**
* 异步校验图片/音频是否含有违法违规内容 接口
*
* @author 李贤军
*/
public interface WxXcxSecurityMediaCheckAsyncService {
/**
* 异步校验图片/音频是否含有违法违规内容
*
* @param accessToken accessToken
* @param req 异步校验图片/音频是否含有违法违规内容 入参
* @return 异步校验图片/音频是否含有违法违规内容 返回
*/
WxXcxSecurityMediaCheckAsyncRes getSecurityMediaCheckAsync(WxXcxAccessToken accessToken, WxXcxSecurityMediaCheckAsyncReq req);
}
package com.yanzuoguang.wxxcx.security.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMsgSecCheckReq;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMsgSecCheckRes;
/**
* 检查一段文本是否含有违法违规内容 接口
*
* @author 李贤军
*/
public interface WxXcxSecurityMsgSecCheckService {
/**
* 检查一段文本是否含有违法违规内容
*
* @param accessToken accessToken
* @param req 检查一段文本是否含有违法违规内容 入参
* @return 检查一段文本是否含有违法违规内容 返回
*/
WxXcxSecurityMsgSecCheckRes getSecurityMsgSecCheck(WxXcxAccessToken accessToken, WxXcxSecurityMsgSecCheckReq req);
}
package com.yanzuoguang.wxxcx.security.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMediaCheckAsyncReq;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMediaCheckAsyncRequest;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMediaCheckAsyncRes;
import com.yanzuoguang.wxxcx.security.service.WxXcxSecurityMediaCheckAsyncService;
import org.springframework.stereotype.Component;
/**
* 异步校验图片/音频是否含有违法违规内容 实现
*
* @author 李贤军
*/
@Component
public class WxXcxSecurityMediaCheckAsyncServiceImpl implements WxXcxSecurityMediaCheckAsyncService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxSecurityMediaCheckAsyncServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 异步校验图片/音频是否含有违法违规内容
*
* @param accessToken accessToken
* @param req 异步校验图片/音频是否含有违法违规内容 入参
* @return 异步校验图片/音频是否含有违法违规内容 返回
*/
@Override
public WxXcxSecurityMediaCheckAsyncRes getSecurityMediaCheckAsync(WxXcxAccessToken accessToken, WxXcxSecurityMediaCheckAsyncReq req) {
WxXcxSecurityMediaCheckAsyncRequest request = new WxXcxSecurityMediaCheckAsyncRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.security.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMsgSecCheckReq;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMsgSecCheckRequest;
import com.yanzuoguang.wxxcx.security.WxXcxSecurityMsgSecCheckRes;
import com.yanzuoguang.wxxcx.security.service.WxXcxSecurityMsgSecCheckService;
import org.springframework.stereotype.Component;
/**
* 检查一段文本是否含有违法违规内容 实现
*
* @author 李贤军
*/
@Component
public class WxXcxSecurityMsgSecCheckServiceImpl implements WxXcxSecurityMsgSecCheckService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxSecurityMsgSecCheckServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 检查一段文本是否含有违法违规内容
*
* @param accessToken accessToken
* @param req 检查一段文本是否含有违法违规内容 入参
* @return 检查一段文本是否含有违法违规内容 返回
*/
@Override
public WxXcxSecurityMsgSecCheckRes getSecurityMsgSecCheck(WxXcxAccessToken accessToken, WxXcxSecurityMsgSecCheckReq req) {
WxXcxSecurityMsgSecCheckRequest request = new WxXcxSecurityMsgSecCheckRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.start;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionReq;
import com.yanzuoguang.wxxcx.auth.login.WxXcxResponseAuthCode2SessionRes;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionRes;
/**
* 微信登录实现类
......@@ -16,5 +16,5 @@ public interface WxXcxAuthLogin {
* @param wxXcxAuthCode2SessionReq 请求登录
* @return 请求实体
*/
WxXcxResponseAuthCode2SessionRes code2Session(WxXcxAuthCode2SessionReq wxXcxAuthCode2SessionReq);
WxXcxAuthCode2SessionRes code2Session(WxXcxAuthCode2SessionReq wxXcxAuthCode2SessionReq);
}
......@@ -2,7 +2,7 @@ package com.yanzuoguang.wxxcx.start.impl;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionReq;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionRequest;
import com.yanzuoguang.wxxcx.auth.login.WxXcxResponseAuthCode2SessionRes;
import com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionRes;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.start.WxXcxAuthLogin;
......@@ -31,7 +31,7 @@ public class WxXcxAuthLoginImpl implements WxXcxAuthLogin {
* @return
*/
@Override
public WxXcxResponseAuthCode2SessionRes code2Session(WxXcxAuthCode2SessionReq wxXcxAuthCode2SessionReq) {
public WxXcxAuthCode2SessionRes code2Session(WxXcxAuthCode2SessionReq wxXcxAuthCode2SessionReq) {
WxXcxAuthCode2SessionRequest code2SessionRequest = new WxXcxAuthCode2SessionRequest(wxXcxConfig, wxXcxRequest, wxXcxAuthCode2SessionReq);
return code2SessionRequest.getResponse();
}
......
package com.yanzuoguang.wxxcx.uniformmessage.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.uniformmessage.WxXcxUniformMessageSendReq;
import com.yanzuoguang.wxxcx.uniformmessage.WxXcxUniformMessageSendRes;
/**
* 下发小程序和公众号统一的服务消息 接口
*
* @author 李贤军
*/
public interface WxXcxUniformMessageSendService {
/**
* 下发小程序和公众号统一的服务消息
*
* @param accessToken accessToken
* @param req 下发小程序和公众号统一的服务消息 入参
* @return 下发小程序和公众号统一的服务消息 返回
*/
WxXcxUniformMessageSendRes getSecurityMsgSecCheck(WxXcxAccessToken accessToken, WxXcxUniformMessageSendReq req);
}
package com.yanzuoguang.wxxcx.uniformmessage.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.uniformmessage.WxXcxUniformMessageSendReq;
import com.yanzuoguang.wxxcx.uniformmessage.WxXcxUniformMessageSendRequest;
import com.yanzuoguang.wxxcx.uniformmessage.WxXcxUniformMessageSendRes;
import com.yanzuoguang.wxxcx.uniformmessage.service.WxXcxUniformMessageSendService;
import org.springframework.stereotype.Component;
/**
* 下发小程序和公众号统一的服务消息 实现
*
* @author 李贤军
*/
@Component
public class WxXcxUniformMessageSendServiceImpl implements WxXcxUniformMessageSendService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxUniformMessageSendServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 下发小程序和公众号统一的服务消息
*
* @param accessToken accessToken
* @param req 下发小程序和公众号统一的服务消息 入参
* @return 下发小程序和公众号统一的服务消息 返回
*/
@Override
public WxXcxUniformMessageSendRes getSecurityMsgSecCheck(WxXcxAccessToken accessToken, WxXcxUniformMessageSendReq req) {
WxXcxUniformMessageSendRequest request = new WxXcxUniformMessageSendRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
......@@ -14,11 +14,13 @@ public class WxXcxUpdatableMessageCreateActivityIdRequest implements WxXcxReques
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
private final WxXcxAccessToken accessToken;
private final WxXcxUpdatableMessageCreateActivityIdReq req;
public WxXcxUpdatableMessageCreateActivityIdRequest(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest, WxXcxUpdatableMessageCreateActivityIdReq req) {
public WxXcxUpdatableMessageCreateActivityIdRequest(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest, WxXcxAccessToken accessToken, WxXcxUpdatableMessageCreateActivityIdReq req) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
this.accessToken = accessToken;
this.req = req;
}
......
package com.yanzuoguang.wxxcx.updatablemessage.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageCreateActivityIdReq;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageCreateActivityIdRes;
/**
* 创建被分享动态消息或私密消息的 activity_id 接口
*
* @author 李贤军
*/
public interface WxXcxUpdatableMessageCreateActivityIdService {
/**
* 创建被分享动态消息或私密消息的 activity_id
*
* @param accessToken accessToken
* @param req 创建被分享动态消息或私密消息的 activity_id 入参
* @return 创建被分享动态消息或私密消息的 activity_id 返回
*/
WxXcxUpdatableMessageCreateActivityIdRes getUpdatableMessageCreateActivityId(WxXcxAccessToken accessToken, WxXcxUpdatableMessageCreateActivityIdReq req);
}
package com.yanzuoguang.wxxcx.updatablemessage.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageSetUpdatableMsgReq;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageSetUpdatableMsgRes;
/**
* 修改被分享的动态消息 接口
*
* @author 李贤军
*/
public interface WxXcxUpdatableMessageSetUpdatableMsgService {
/**
* 修改被分享的动态消息
*
* @param accessToken accessToken
* @param req 修改被分享的动态消息 入参
* @return 修改被分享的动态消息 返回
*/
WxXcxUpdatableMessageSetUpdatableMsgRes getUpdatableMessageSetUpdatableMsg(WxXcxAccessToken accessToken, WxXcxUpdatableMessageSetUpdatableMsgReq req);
}
package com.yanzuoguang.wxxcx.updatablemessage.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageCreateActivityIdReq;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageCreateActivityIdRequest;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageCreateActivityIdRes;
import com.yanzuoguang.wxxcx.updatablemessage.service.WxXcxUpdatableMessageCreateActivityIdService;
import org.springframework.stereotype.Component;
/**
* 创建被分享动态消息或私密消息的 activity_id 实现
*
* @author 李贤军
*/
@Component
public class WxXcxUpdatableMessageCreateActivityIdServiceImpl implements WxXcxUpdatableMessageCreateActivityIdService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxUpdatableMessageCreateActivityIdServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 创建被分享动态消息或私密消息的 activity_id
*
* @param accessToken accessToken
* @param req 创建被分享动态消息或私密消息的 activity_id 入参
* @return 创建被分享动态消息或私密消息的 activity_id 返回
*/
@Override
public WxXcxUpdatableMessageCreateActivityIdRes getUpdatableMessageCreateActivityId(WxXcxAccessToken accessToken, WxXcxUpdatableMessageCreateActivityIdReq req) {
WxXcxUpdatableMessageCreateActivityIdRequest request = new WxXcxUpdatableMessageCreateActivityIdRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.updatablemessage.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageSetUpdatableMsgReq;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageSetUpdatableMsgRequest;
import com.yanzuoguang.wxxcx.updatablemessage.WxXcxUpdatableMessageSetUpdatableMsgRes;
import com.yanzuoguang.wxxcx.updatablemessage.service.WxXcxUpdatableMessageSetUpdatableMsgService;
import org.springframework.stereotype.Component;
/**
* 修改被分享的动态消息 实现
*
* @author 李贤军
*/
@Component
public class WxXcxUpdatableMessageSetUpdatableMsgServiceImpl implements WxXcxUpdatableMessageSetUpdatableMsgService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxUpdatableMessageSetUpdatableMsgServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 修改被分享的动态消息
*
* @param accessToken accessToken
* @param req 修改被分享的动态消息 入参
* @return 修改被分享的动态消息 返回
*/
@Override
public WxXcxUpdatableMessageSetUpdatableMsgRes getUpdatableMessageSetUpdatableMsg(WxXcxAccessToken accessToken, WxXcxUpdatableMessageSetUpdatableMsgReq req) {
WxXcxUpdatableMessageSetUpdatableMsgRequest request = new WxXcxUpdatableMessageSetUpdatableMsgRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.urllink.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkGenerateReq;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkGenerateRes;
/**
* 获取小程序 URL Link 接口
*
* @author 李贤军
*/
public interface WxXcxUrlLinkGenerateService {
/**
* 获取小程序 URL Link
*
* @param accessToken accessToken
* @param req 获取小程序 URL Link 请求
* @return 获取小程序 URL Link 返回
*/
WxXcxUrlLinkGenerateRes getUrlLinkGenerate(WxXcxAccessToken accessToken, WxXcxUrlLinkGenerateReq req);
}
package com.yanzuoguang.wxxcx.urllink.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkQueryReq;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkQueryRes;
/**
* 查询小程序 url_link 配置 接口
*
* @author 李贤军
*/
public interface WxXcxUrlLinkQueryService {
/**
* 查询小程序 url_link 配置
*
* @param accessToken accessToken
* @param req 查询小程序 url_link 配置 入参
* @return 查询小程序 url_link 配置 返回
*/
WxXcxUrlLinkQueryRes getUrlLinkQuery(WxXcxAccessToken accessToken, WxXcxUrlLinkQueryReq req);
}
package com.yanzuoguang.wxxcx.urllink.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkGenerateReq;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkGenerateRequest;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkGenerateRes;
import com.yanzuoguang.wxxcx.urllink.service.WxXcxUrlLinkGenerateService;
import org.springframework.stereotype.Component;
/**
* 获取小程序 URL Link 实现
*
* @author 李贤军
*/
@Component
public class WxXcxUrlLinkGenerateServiceImpl implements WxXcxUrlLinkGenerateService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxUrlLinkGenerateServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取小程序 URL Link
*
* @param accessToken accessToken
* @param req 获取小程序 URL Link 请求
* @return 获取小程序 URL Link 返回
*/
@Override
public WxXcxUrlLinkGenerateRes getUrlLinkGenerate(WxXcxAccessToken accessToken, WxXcxUrlLinkGenerateReq req) {
WxXcxUrlLinkGenerateRequest request = new WxXcxUrlLinkGenerateRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.urllink.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkQueryReq;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkQueryRequest;
import com.yanzuoguang.wxxcx.urllink.WxXcxUrlLinkQueryRes;
import com.yanzuoguang.wxxcx.urllink.service.WxXcxUrlLinkQueryService;
import org.springframework.stereotype.Component;
/**
* 查询小程序 url_link 配置 实现
*
* @author 李贤军
*/
@Component
public class WxXcxUrlLinkQueryServiceImpl implements WxXcxUrlLinkQueryService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxUrlLinkQueryServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 查询小程序 url_link 配置
*
* @param accessToken accessToken
* @param req 查询小程序 url_link 配置 入参
* @return 查询小程序 url_link 配置 返回
*/
@Override
public WxXcxUrlLinkQueryRes getUrlLinkQuery(WxXcxAccessToken accessToken, WxXcxUrlLinkQueryReq req) {
WxXcxUrlLinkQueryRequest request = new WxXcxUrlLinkQueryRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.urlscheme.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateNfcReq;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateNfcRes;
/**
* 获取用于 NFC 的小程序 scheme 码 接口
*
* @author 李贤军
*/
public interface WxXcxUrlSchemeGenerateNfcService {
/**
* 获取用于 NFC 的小程序 scheme 码
*
* @param accessToken accessToken
* @param req 获取用于 NFC 的小程序 scheme 码 入参
* @return 获取用于 NFC 的小程序 scheme 码 返回
*/
WxXcxUrlSchemeGenerateNfcRes getUrlSchemeGenerateNFC(WxXcxAccessToken accessToken, WxXcxUrlSchemeGenerateNfcReq req);
}
package com.yanzuoguang.wxxcx.urlscheme.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateReq;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateRes;
/**
* 获取小程序 scheme 码 接口
*
* @author 李贤军
*/
public interface WxXcxUrlSchemeGenerateService {
/**
* 获取小程序 scheme 码
*
* @param accessToken accessToken
* @param req 获取小程序 scheme 码 入参
* @return 获取小程序 scheme 码 返回
*/
WxXcxUrlSchemeGenerateRes getUrlSchemeGenerate(WxXcxAccessToken accessToken, WxXcxUrlSchemeGenerateReq req);
}
package com.yanzuoguang.wxxcx.urlscheme.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeQueryReq;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeQueryRes;
/**
* 查询小程序 scheme 码 接口
*
* @author 李贤军
*/
public interface WxXcxUrlSchemeQueryService {
/**
* 查询小程序 scheme 码
*
* @param accessToken accessToken
* @param req 查询小程序 scheme 码 入参
* @return 查询小程序 scheme 码 返回
*/
WxXcxUrlSchemeQueryRes getUrlSchemeQuery(WxXcxAccessToken accessToken, WxXcxUrlSchemeQueryReq req);
}
package com.yanzuoguang.wxxcx.urlscheme.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateNfcReq;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateNfcRequest;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateNfcRes;
import com.yanzuoguang.wxxcx.urlscheme.service.WxXcxUrlSchemeGenerateNfcService;
import org.springframework.stereotype.Component;
/**
* 获取用于 NFC 的小程序 scheme 码 实现
*
* @author 李贤军
*/
@Component
public class WxXcxUrlSchemeGenerateNfcServiceImpl implements WxXcxUrlSchemeGenerateNfcService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxUrlSchemeGenerateNfcServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取用于 NFC 的小程序 scheme 码
*
* @param accessToken accessToken
* @param req 获取用于 NFC 的小程序 scheme 码 入参
* @return 获取用于 NFC 的小程序 scheme 码 返回
*/
@Override
public WxXcxUrlSchemeGenerateNfcRes getUrlSchemeGenerateNFC(WxXcxAccessToken accessToken, WxXcxUrlSchemeGenerateNfcReq req) {
WxXcxUrlSchemeGenerateNfcRequest request = new WxXcxUrlSchemeGenerateNfcRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.urlscheme.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateReq;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateRequest;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeGenerateRes;
import com.yanzuoguang.wxxcx.urlscheme.service.WxXcxUrlSchemeGenerateService;
import org.springframework.stereotype.Component;
/**
* @author 李贤军
*/
@Component
public class WxXcxUrlSchemeGenerateServiceImpl implements WxXcxUrlSchemeGenerateService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxUrlSchemeGenerateServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取小程序 scheme 码
*
* @param accessToken accessToken
* @param req 获取小程序 scheme 码 入参
* @return 获取小程序 scheme 码 返回
*/
@Override
public WxXcxUrlSchemeGenerateRes getUrlSchemeGenerate(WxXcxAccessToken accessToken, WxXcxUrlSchemeGenerateReq req) {
WxXcxUrlSchemeGenerateRequest request = new WxXcxUrlSchemeGenerateRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.urlscheme.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeQueryReq;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeQueryRequest;
import com.yanzuoguang.wxxcx.urlscheme.WxXcxUrlSchemeQueryRes;
import com.yanzuoguang.wxxcx.urlscheme.service.WxXcxUrlSchemeQueryService;
import org.springframework.stereotype.Component;
/**
* 查询小程序 scheme 码 实现
*
* @author 李贤军
*/
@Component
public class WxXcxUrlSchemeQueryServiceImpl implements WxXcxUrlSchemeQueryService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxUrlSchemeQueryServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 查询小程序 scheme 码
*
* @param accessToken accessToken
* @param req 查询小程序 scheme 码 入参
* @return 查询小程序 scheme 码 返回
*/
@Override
public WxXcxUrlSchemeQueryRes getUrlSchemeQuery(WxXcxAccessToken accessToken, WxXcxUrlSchemeQueryReq req) {
WxXcxUrlSchemeQueryRequest request = new WxXcxUrlSchemeQueryRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.wxacode.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeCreateQrCodeReq;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeCreateQrCodeRes;
/**
* 获取小程序二维码 接口
*
* @author 李贤军
*/
public interface WxXcxWxaCodeCreateQrCodeService {
/**
* 获取小程序二维码
*
* @param accessToken accessToken
* @param req 获取小程序二维码 入参
* @return 获取小程序二维码 返回
*/
WxXcxWxaCodeCreateQrCodeRes getWxaCodeCreateQRCode(WxXcxAccessToken accessToken, WxXcxWxaCodeCreateQrCodeReq req);
}
package com.yanzuoguang.wxxcx.wxacode.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetReq;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetRes;
/**
* 获取小程序码 接口
*
* @author 李贤军
*/
public interface WxXcxWxaCodeGetService {
/**
* 获取小程序码
*
* @param accessToken accessToken
* @param req 获取小程序码 入参
* @return 获取小程序码 返回
*/
WxXcxWxaCodeGetRes getWxaCodeGet(WxXcxAccessToken accessToken, WxXcxWxaCodeGetReq req);
}
package com.yanzuoguang.wxxcx.wxacode.service;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetUnlimitedReq;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetUnlimitedRes;
/**
* 获取小程序码 接口
*
* @author 李贤军
*/
public interface WxXcxWxaCodeGetUnlimitedService {
/**
* 获取小程序码
*
* @param accessToken accessToken
* @param req 获取小程序码 入参
* @return 获取小程序码 返回
*/
WxXcxWxaCodeGetUnlimitedRes getWxaCodeGetUnlimited(WxXcxAccessToken accessToken, WxXcxWxaCodeGetUnlimitedReq req);
}
package com.yanzuoguang.wxxcx.wxacode.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeCreateQrCodeReq;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeCreateQrCodeRequest;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeCreateQrCodeRes;
import com.yanzuoguang.wxxcx.wxacode.service.WxXcxWxaCodeCreateQrCodeService;
import org.springframework.stereotype.Component;
/**
* 获取小程序二维码 实现
*
* @author 李贤军
*/
@Component
public class WxXcxWxaCodeCreateQrCodeServiceImpl implements WxXcxWxaCodeCreateQrCodeService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxWxaCodeCreateQrCodeServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取小程序二维码
*
* @param accessToken accessToken
* @param req 获取小程序二维码 入参
* @return 获取小程序二维码 返回
*/
@Override
public WxXcxWxaCodeCreateQrCodeRes getWxaCodeCreateQRCode(WxXcxAccessToken accessToken, WxXcxWxaCodeCreateQrCodeReq req) {
WxXcxWxaCodeCreateQrCodeRequest request = new WxXcxWxaCodeCreateQrCodeRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.wxacode.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetReq;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetRequest;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetRes;
import com.yanzuoguang.wxxcx.wxacode.service.WxXcxWxaCodeGetService;
import org.springframework.stereotype.Component;
/**
* 获取小程序码 实现
*
* @author 李贤军
*/
@Component
public class WxXcxWxaCodeGetServiceImpl implements WxXcxWxaCodeGetService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxWxaCodeGetServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取小程序码
*
* @param accessToken accessToken
* @param req 获取小程序码 入参
* @return 获取小程序码 返回
*/
@Override
public WxXcxWxaCodeGetRes getWxaCodeGet(WxXcxAccessToken accessToken, WxXcxWxaCodeGetReq req) {
WxXcxWxaCodeGetRequest request = new WxXcxWxaCodeGetRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.wxacode.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetUnlimitedReq;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetUnlimitedRequest;
import com.yanzuoguang.wxxcx.wxacode.WxXcxWxaCodeGetUnlimitedRes;
import com.yanzuoguang.wxxcx.wxacode.service.WxXcxWxaCodeGetUnlimitedService;
import org.springframework.stereotype.Component;
/**
* 获取小程序码 实现
*
* @author 李贤军
*/
@Component
public class WxXcxWxaCodeGetUnlimitedServiceImpl implements WxXcxWxaCodeGetUnlimitedService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxWxaCodeGetUnlimitedServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
/**
* 获取小程序码
*
* @param accessToken accessToken
* @param req 获取小程序码 入参
* @return 获取小程序码 返回
*/
@Override
public WxXcxWxaCodeGetUnlimitedRes getWxaCodeGetUnlimited(WxXcxAccessToken accessToken, WxXcxWxaCodeGetUnlimitedReq req) {
WxXcxWxaCodeGetUnlimitedRequest request = new WxXcxWxaCodeGetUnlimitedRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
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