Commit a97d3dfb authored by xianjun's avatar xianjun

创建微信小程序接口实体

parent fdfdbcb5
package com.yanzuoguang.wxxcx.analysis.data.service;
import com.yanzuoguang.wxxcx.analysis.data.WxXcxAnalysisGetPerformanceDataReq;
import com.yanzuoguang.wxxcx.analysis.data.WxXcxAnalysisGetPerformanceDataRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* 获取小程序启动性能,运行性能等数据 service
*
* @author 李贤军
*/
public interface WxXcxAnalysisGetPerformanceDataService {
/**
* 获取小程序启动性能,运行性能等数据
*
* @param accessToken accessToken
* @param req 请求
* @return 获取小程序启动性能,运行性能等数据响应
*/
WxXcxAnalysisGetPerformanceDataRes getAnalysisGetPerformanceData(WxXcxAccessToken accessToken, WxXcxAnalysisGetPerformanceDataReq req);
}
package com.yanzuoguang.wxxcx.analysis.data.service;
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.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import org.springframework.stereotype.Component;
/**
* 获取小程序启动性能,运行性能等数据 serviceImpl
*
* @author 李贤军
*/
@Component
public class WxXcxAnalysisGetPerformanceDataServiceImpl implements WxXcxAnalysisGetPerformanceDataService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetPerformanceDataServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
@Override
public WxXcxAnalysisGetPerformanceDataRes getAnalysisGetPerformanceData(WxXcxAccessToken accessToken, WxXcxAnalysisGetPerformanceDataReq req) {
WxXcxAnalysisGetPerformanceDataRequest request = new WxXcxAnalysisGetPerformanceDataRequest(wxXcxConfig, wxXcxRequest, accessToken, req);
return request.getResponse();
}
}
package com.yanzuoguang.wxxcx.analysis.distribution.service;
import com.yanzuoguang.wxxcx.analysis.distribution.WxXcxAnalysisGetVisitDistributionReq;
import com.yanzuoguang.wxxcx.analysis.distribution.WxXcxAnalysisGetVisitDistributionRes;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
/**
* @author 李贤军
*/
public interface WxXcxAnalysisGetVisitDistributionService {
/**
* 获取用户小程序访问分布数据
*
* @param accessToken accessToken
* @param req 请求
* @return 获取用户小程序访问分布数据 响应
*/
WxXcxAnalysisGetVisitDistributionRes getAnalysisGetVisitDistribution(WxXcxAccessToken accessToken, WxXcxAnalysisGetVisitDistributionReq req);
}
package com.yanzuoguang.wxxcx.analysis.distribution.service.impl;
import com.yanzuoguang.wxxcx.analysis.distribution.WxXcxAnalysisGetVisitDistributionReq;
import com.yanzuoguang.wxxcx.analysis.distribution.WxXcxAnalysisGetVisitDistributionRequest;
import com.yanzuoguang.wxxcx.analysis.distribution.WxXcxAnalysisGetVisitDistributionRes;
import com.yanzuoguang.wxxcx.analysis.distribution.service.WxXcxAnalysisGetVisitDistributionService;
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 WxXcxAnalysisGetVisitDistributionServiceImpl implements WxXcxAnalysisGetVisitDistributionService {
private final WxXcxConfig wxXcxConfig;
private final WxXcxRequest wxXcxRequest;
public WxXcxAnalysisGetVisitDistributionServiceImpl(WxXcxConfig wxXcxConfig, WxXcxRequest wxXcxRequest) {
this.wxXcxConfig = wxXcxConfig;
this.wxXcxRequest = wxXcxRequest;
}
@Override
public WxXcxAnalysisGetVisitDistributionRes getAnalysisGetVisitDistribution(WxXcxAccessToken accessToken, WxXcxAnalysisGetVisitDistributionReq req) {
WxXcxAnalysisGetVisitDistributionRequest request = new WxXcxAnalysisGetVisitDistributionRequest(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