Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
fdb9020f
Commit
fdb9020f
authored
2 years ago
by
xianjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建微信小程序接口实体
parent
8d3aded2
Changes
101
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
101 changed files
with
2766 additions
and
138 deletions
+2766
-138
WxXcxAnalysisGetPerformanceDataRequest.java
...analysis/data/WxXcxAnalysisGetPerformanceDataRequest.java
+1
-1
WxXcxAnalysisGetVisitDistributionRequest.java
...istribution/WxXcxAnalysisGetVisitDistributionRequest.java
+1
-1
WxXcxAnalysisGetVisitDistributionRes.java
...is/distribution/WxXcxAnalysisGetVisitDistributionRes.java
+16
-0
WxXcxAnalysisGetVisitPageRequest.java
...wxxcx/analysis/page/WxXcxAnalysisGetVisitPageRequest.java
+1
-3
WxXcxAnalysisGetUserPortraitRequest.java
...nalysis/portrait/WxXcxAnalysisGetUserPortraitRequest.java
+1
-3
WxXcxAnalysisGetDailyRetainRequest.java
...x/analysis/retain/WxXcxAnalysisGetDailyRetainRequest.java
+5
-7
WxXcxAnalysisGetMonthlyRetainRequest.java
...analysis/retain/WxXcxAnalysisGetMonthlyRetainRequest.java
+5
-7
WxXcxAnalysisGetWeeklyRetainRequest.java
.../analysis/retain/WxXcxAnalysisGetWeeklyRetainRequest.java
+5
-7
WxXcxAnalysisGetDailySummaryRequest.java
...analysis/summary/WxXcxAnalysisGetDailySummaryRequest.java
+3
-4
WxXcxAnalysisGetDailyVisitTrendRequest.java
...nalysis/trend/WxXcxAnalysisGetDailyVisitTrendRequest.java
+1
-1
WxXcxAnalysisGetMonthlyVisitTrendRequest.java
...lysis/trend/WxXcxAnalysisGetMonthlyVisitTrendRequest.java
+1
-1
WxXcxAnalysisGetWeeklyVisitTrendRequest.java
...alysis/trend/WxXcxAnalysisGetWeeklyVisitTrendRequest.java
+1
-1
WxXcxAuthCode2SessionRequest.java
...oguang/wxxcx/auth/login/WxXcxAuthCode2SessionRequest.java
+1
-1
WxXcxAuthGetAccessTokenReq.java
...zuoguang/wxxcx/auth/token/WxXcxAuthGetAccessTokenReq.java
+1
-1
WxXcxAuthGetAccessTokenRequest.java
...uang/wxxcx/auth/token/WxXcxAuthGetAccessTokenRequest.java
+6
-8
WxXcxAuthGetAccessTokenRes.java
...zuoguang/wxxcx/auth/token/WxXcxAuthGetAccessTokenRes.java
+1
-1
WxXcxAuthCheckEncryptedDataRequest.java
...g/wxxcx/auth/user/WxXcxAuthCheckEncryptedDataRequest.java
+1
-1
WxXcxAuthCheckEncryptedDataRes.java
...guang/wxxcx/auth/user/WxXcxAuthCheckEncryptedDataRes.java
+3
-3
WxXcxAuthGetPaidUnionIdRequest.java
...guang/wxxcx/auth/user/WxXcxAuthGetPaidUnionIdRequest.java
+5
-5
WxXcxAuthGetPaidUnionIdRes.java
...nzuoguang/wxxcx/auth/user/WxXcxAuthGetPaidUnionIdRes.java
+3
-1
WxXcxAuthGetPluginOpenPidRequest.java
...ang/wxxcx/auth/user/WxXcxAuthGetPluginOpenPidRequest.java
+5
-7
WxXcxAuthGetPluginOpenPidRes.java
...uoguang/wxxcx/auth/user/WxXcxAuthGetPluginOpenPidRes.java
+3
-1
WxXcxConfig.java
...src/main/java/com/yanzuoguang/wxxcx/base/WxXcxConfig.java
+145
-26
WxXcxRequest.java
...rc/main/java/com/yanzuoguang/wxxcx/base/WxXcxRequest.java
+1
-1
WxXcxRequestImpl.java
...ain/java/com/yanzuoguang/wxxcx/base/WxXcxRequestImpl.java
+1
-1
WxXcxRequestUrl.java
...main/java/com/yanzuoguang/wxxcx/base/WxXcxRequestUrl.java
+1
-1
WxXcxCustomerServiceMessageGetTempMediaReq.java
...tempmedia/WxXcxCustomerServiceMessageGetTempMediaReq.java
+1
-1
WxXcxCustomerServiceMessageGetTempMediaRequest.java
...media/WxXcxCustomerServiceMessageGetTempMediaRequest.java
+2
-4
WxXcxCustomerServiceMessageGetTempMediaRes.java
...tempmedia/WxXcxCustomerServiceMessageGetTempMediaRes.java
+1
-1
WxXcxCustomerServiceMessageSendImageReq.java
...message/send/WxXcxCustomerServiceMessageSendImageReq.java
+1
-1
WxXcxCustomerServiceMessageSendLinkReq.java
...emessage/send/WxXcxCustomerServiceMessageSendLinkReq.java
+1
-1
WxXcxCustomerServiceMessageSendMiniProgramPageReq.java
...nd/WxXcxCustomerServiceMessageSendMiniProgramPageReq.java
+1
-1
WxXcxCustomerServiceMessageSendReq.java
...rvicemessage/send/WxXcxCustomerServiceMessageSendReq.java
+1
-1
WxXcxCustomerServiceMessageSendRequest.java
...emessage/send/WxXcxCustomerServiceMessageSendRequest.java
+4
-5
WxXcxCustomerServiceMessageSendRes.java
...rvicemessage/send/WxXcxCustomerServiceMessageSendRes.java
+1
-1
WxXcxCustomerServiceMessageSendTextReq.java
...emessage/send/WxXcxCustomerServiceMessageSendTextReq.java
+1
-1
WxXcxCustomerServiceMessageSetTypingReq.java
...ge/settyping/WxXcxCustomerServiceMessageSetTypingReq.java
+1
-1
WxXcxCustomerServiceMessageSetTypingRequest.java
...ettyping/WxXcxCustomerServiceMessageSetTypingRequest.java
+2
-4
WxXcxCustomerServiceMessageSetTypingRes.java
...ge/settyping/WxXcxCustomerServiceMessageSetTypingRes.java
+1
-1
WxXcxCustomerServiceMessageUploadTempMediaReq.java
...pmedia/WxXcxCustomerServiceMessageUploadTempMediaReq.java
+1
-1
WxXcxCustomerServiceMessageUploadTempMediaRequest.java
...ia/WxXcxCustomerServiceMessageUploadTempMediaRequest.java
+2
-4
WxXcxCustomerServiceMessageUploadTempMediaRes.java
...pmedia/WxXcxCustomerServiceMessageUploadTempMediaRes.java
+1
-1
WxXcxNearbyPoiAddRequest.java
...yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiAddRequest.java
+1
-3
WxXcxNearbyPoiDeleteRequest.java
...zuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiDeleteRequest.java
+1
-1
WxXcxNearbyPoiGetListRequest.java
...uoguang/wxxcx/nearbypoi/WxXcxNearbyPoiGetListRequest.java
+1
-1
WxXcxNearbyPoiSetShowStatusReq.java
...guang/wxxcx/nearbypoi/WxXcxNearbyPoiSetShowStatusReq.java
+47
-0
WxXcxNearbyPoiSetShowStatusRequest.java
...g/wxxcx/nearbypoi/WxXcxNearbyPoiSetShowStatusRequest.java
+52
-0
WxXcxNearbyPoiSetShowStatusRes.java
...guang/wxxcx/nearbypoi/WxXcxNearbyPoiSetShowStatusRes.java
+11
-0
WxXcxPluginManagerApplyPluginRequest.java
...x/pluginmanager/WxXcxPluginManagerApplyPluginRequest.java
+1
-1
WxXcxPluginManagerGetPluginListRequest.java
...pluginmanager/WxXcxPluginManagerGetPluginListRequest.java
+1
-1
WxXcxPluginManagerSetDevPluginApplyStatusRequest.java
...ger/WxXcxPluginManagerSetDevPluginApplyStatusRequest.java
+1
-1
WxXcxPluginManagerUnbindPluginRequest.java
.../pluginmanager/WxXcxPluginManagerUnbindPluginRequest.java
+1
-1
WxXxcPluginManagerGetPluginDevApplyListRequest.java
...nager/WxXxcPluginManagerGetPluginDevApplyListRequest.java
+2
-1
WxXcxRedPacketCoverGetAuthenticationUrlDataRes.java
...cover/WxXcxRedPacketCoverGetAuthenticationUrlDataRes.java
+21
-0
WxXcxRedPacketCoverGetAuthenticationUrlReq.java
...cketcover/WxXcxRedPacketCoverGetAuthenticationUrlReq.java
+46
-0
WxXcxRedPacketCoverGetAuthenticationUrlRequest.java
...cover/WxXcxRedPacketCoverGetAuthenticationUrlRequest.java
+53
-0
WxXcxRedPacketCoverGetAuthenticationUrlRes.java
...cketcover/WxXcxRedPacketCoverGetAuthenticationUrlRes.java
+24
-0
WxXcxSecurityMediaCheckAsyncDetailRes.java
...wxxcx/security/WxXcxSecurityMediaCheckAsyncDetailRes.java
+69
-0
WxXcxSecurityMediaCheckAsyncReq.java
...guang/wxxcx/security/WxXcxSecurityMediaCheckAsyncReq.java
+86
-0
WxXcxSecurityMediaCheckAsyncRequest.java
...g/wxxcx/security/WxXcxSecurityMediaCheckAsyncRequest.java
+57
-0
WxXcxSecurityMediaCheckAsyncRes.java
...guang/wxxcx/security/WxXcxSecurityMediaCheckAsyncRes.java
+136
-0
WxXcxSecurityMediaCheckAsyncResultRes.java
...wxxcx/security/WxXcxSecurityMediaCheckAsyncResultRes.java
+33
-0
WxXcxSecurityMsgSecCheckDetailRes.java
...ang/wxxcx/security/WxXcxSecurityMsgSecCheckDetailRes.java
+81
-0
WxXcxSecurityMsgSecCheckReq.java
...nzuoguang/wxxcx/security/WxXcxSecurityMsgSecCheckReq.java
+111
-0
WxXcxSecurityMsgSecCheckRequest.java
...guang/wxxcx/security/WxXcxSecurityMsgSecCheckRequest.java
+58
-0
WxXcxSecurityMsgSecCheckRes.java
...nzuoguang/wxxcx/security/WxXcxSecurityMsgSecCheckRes.java
+53
-0
WxXcxSecurityMsgSecCheckResultRes.java
...ang/wxxcx/security/WxXcxSecurityMsgSecCheckResultRes.java
+33
-0
WxXcxUniformMessageSendRequest.java
.../wxxcx/uniformmessage/WxXcxUniformMessageSendRequest.java
+1
-1
WxXcxUpdatableMessageCreateActivityIdRequest.java
...message/WxXcxUpdatableMessageCreateActivityIdRequest.java
+1
-3
WxXcxUpdatableMessageCreateActivityIdRes.java
...ablemessage/WxXcxUpdatableMessageCreateActivityIdRes.java
+16
-0
WxXcxUpdatableMessageSetUpdatableMsgRequest.java
...emessage/WxXcxUpdatableMessageSetUpdatableMsgRequest.java
+1
-1
WxXcxUrlLinkGenerateCloudBaseReq.java
...guang/wxxcx/urllink/WxXcxUrlLinkGenerateCloudBaseReq.java
+69
-0
WxXcxUrlLinkGenerateReq.java
...om/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkGenerateReq.java
+43
-0
WxXcxUrlLinkGenerateRequest.java
...anzuoguang/wxxcx/urllink/WxXcxUrlLinkGenerateRequest.java
+53
-0
WxXcxUrlLinkGenerateRes.java
...om/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkGenerateRes.java
+24
-0
WxXcxUrlLinkQueryReq.java
...a/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkQueryReq.java
+33
-0
WxXcxUrlLinkQueryRequest.java
...m/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkQueryRequest.java
+52
-0
WxXcxUrlLinkQueryRes.java
...a/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkQueryRes.java
+35
-0
WxXcxUrlLinkQueryUrlLinkInfoRes.java
...oguang/wxxcx/urllink/WxXcxUrlLinkQueryUrlLinkInfoRes.java
+93
-0
WxXcxUrlSchemeGenerateJumpWxaReq.java
...ang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateJumpWxaReq.java
+45
-0
WxXcxUrlSchemeGenerateNfcReq.java
...uoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateNfcReq.java
+58
-0
WxXcxUrlSchemeGenerateNfcRequest.java
...ang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateNfcRequest.java
+53
-0
WxXcxUrlSchemeGenerateNfcRes.java
...uoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateNfcRes.java
+24
-0
WxXcxUrlSchemeGenerateReq.java
...anzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateReq.java
+70
-0
WxXcxUrlSchemeGenerateRequest.java
...oguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateRequest.java
+54
-0
WxXcxUrlSchemeGenerateRes.java
...anzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateRes.java
+25
-0
WxXcxUrlSchemeQueryReq.java
...m/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeQueryReq.java
+34
-0
WxXcxUrlSchemeQueryRequest.java
...nzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeQueryRequest.java
+53
-0
WxXcxUrlSchemeQueryRes.java
...m/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeQueryRes.java
+36
-0
WxXcxUrlSchemeQuerySchemeInfoRes.java
...ang/wxxcx/urlscheme/WxXcxUrlSchemeQuerySchemeInfoRes.java
+81
-0
WxXcxWxaCodeCreateQrCodeReq.java
...anzuoguang/wxxcx/wxacode/WxXcxWxaCodeCreateQrCodeReq.java
+47
-0
WxXcxWxaCodeCreateQrCodeRequest.java
...oguang/wxxcx/wxacode/WxXcxWxaCodeCreateQrCodeRequest.java
+53
-0
WxXcxWxaCodeCreateQrCodeRes.java
...anzuoguang/wxxcx/wxacode/WxXcxWxaCodeCreateQrCodeRes.java
+39
-0
WxXcxWxaCodeGetLineColorReq.java
...anzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetLineColorReq.java
+45
-0
WxXcxWxaCodeGetReq.java
...ava/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetReq.java
+94
-0
WxXcxWxaCodeGetRequest.java
...com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetRequest.java
+53
-0
WxXcxWxaCodeGetRes.java
...ava/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetRes.java
+38
-0
WxXcxWxaCodeGetUnlimitedReq.java
...anzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetUnlimitedReq.java
+118
-0
WxXcxWxaCodeGetUnlimitedRequest.java
...oguang/wxxcx/wxacode/WxXcxWxaCodeGetUnlimitedRequest.java
+53
-0
WxXcxWxaCodeGetUnlimitedRes.java
...anzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetUnlimitedRes.java
+38
-0
WxXcxAuthCode2SessionTest.java
...nzuoguang/wxxcx/auth/login/WxXcxAuthCode2SessionTest.java
+14
-0
No files found.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/data/WxXcxAnalysisGetPerformanceDataRequest.java
View file @
fdb9020f
...
...
@@ -10,7 +10,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetPerformanceDataRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetPerformanceDataRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/distribution/WxXcxAnalysisGetVisitDistributionRequest.java
View file @
fdb9020f
...
...
@@ -11,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetVisitDistributionRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetVisitDistributionRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/distribution/WxXcxAnalysisGetVisitDistributionRes.java
View file @
fdb9020f
...
...
@@ -16,4 +16,20 @@ public class WxXcxAnalysisGetVisitDistributionRes extends WxXcxResponseBaseError
* 数据列表
*/
private
WxXcxAnalysisGetVisitDistributionListRes
list
;
public
String
getRef_date
()
{
return
ref_date
;
}
public
void
setRef_date
(
String
ref_date
)
{
this
.
ref_date
=
ref_date
;
}
public
WxXcxAnalysisGetVisitDistributionListRes
getList
()
{
return
list
;
}
public
void
setList
(
WxXcxAnalysisGetVisitDistributionListRes
list
)
{
this
.
list
=
list
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/page/WxXcxAnalysisGetVisitPageRequest.java
View file @
fdb9020f
...
...
@@ -4,8 +4,6 @@ package com.yanzuoguang.wxxcx.analysis.page;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.analysis.portrait.WxXcxAnalysisGetUserPortraitReq
;
import
com.yanzuoguang.wxxcx.analysis.portrait.WxXcxAnalysisGetUserPortraitRes
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -14,7 +12,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetVisitPageRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetVisitPageRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/portrait/WxXcxAnalysisGetUserPortraitRequest.java
View file @
fdb9020f
...
...
@@ -3,8 +3,6 @@ package com.yanzuoguang.wxxcx.analysis.portrait;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.analysis.data.WxXcxAnalysisGetPerformanceDataReq
;
import
com.yanzuoguang.wxxcx.analysis.data.WxXcxAnalysisGetPerformanceDataRes
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -13,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetUserPortraitRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetUserPortraitRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/retain/WxXcxAnalysisGetDailyRetainRequest.java
View file @
fdb9020f
...
...
@@ -4,8 +4,6 @@ package com.yanzuoguang.wxxcx.analysis.retain;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataReq
;
import
com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataRes
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -13,14 +11,14 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetDailyRetainRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetDailyRetainRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxA
uthCheckEncryptedData
Req
req
;
private
final
WxXcxA
nalysisGetDailyRetain
Req
req
;
public
WxXcxAnalysisGetDailyRetainRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxA
uthCheckEncryptedData
Req
req
)
{
public
WxXcxAnalysisGetDailyRetainRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxA
nalysisGetDailyRetain
Req
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
...
...
@@ -42,11 +40,11 @@ public class WxXcxAnalysisGetDailyRetainRequest implements WxXwxRequestUrl, WxXc
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxA
uthCheckEncryptedData
Res
getResponse
()
{
public
WxXcxA
nalysisGetDailyRetain
Res
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxA
uthCheckEncryptedDataRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthCheckEncryptedData
Res
>()
{
WxXcxA
nalysisGetDailyRetainRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetDailyRetain
Res
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/retain/WxXcxAnalysisGetMonthlyRetainRequest.java
View file @
fdb9020f
...
...
@@ -3,8 +3,6 @@ package com.yanzuoguang.wxxcx.analysis.retain;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataReq
;
import
com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataRes
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -12,14 +10,14 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetMonthlyRetainRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetMonthlyRetainRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxA
uthCheckEncryptedData
Req
req
;
private
final
WxXcxA
nalysisGetMonthlyRetain
Req
req
;
public
WxXcxAnalysisGetMonthlyRetainRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxA
uthCheckEncryptedData
Req
req
)
{
public
WxXcxAnalysisGetMonthlyRetainRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxA
nalysisGetMonthlyRetain
Req
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
...
...
@@ -41,11 +39,11 @@ public class WxXcxAnalysisGetMonthlyRetainRequest implements WxXwxRequestUrl, Wx
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxA
uthCheckEncryptedData
Res
getResponse
()
{
public
WxXcxA
nalysisGetMonthlyRetain
Res
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxA
uthCheckEncryptedDataRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthCheckEncryptedData
Res
>()
{
WxXcxA
nalysisGetMonthlyRetainRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetMonthlyRetain
Res
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/retain/WxXcxAnalysisGetWeeklyRetainRequest.java
View file @
fdb9020f
...
...
@@ -4,8 +4,6 @@ package com.yanzuoguang.wxxcx.analysis.retain;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataReq
;
import
com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataRes
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -13,14 +11,14 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetWeeklyRetainRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetWeeklyRetainRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxA
uthCheckEncryptedData
Req
req
;
private
final
WxXcxA
nalysisGetWeeklyRetain
Req
req
;
public
WxXcxAnalysisGetWeeklyRetainRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxA
uthCheckEncryptedData
Req
req
)
{
public
WxXcxAnalysisGetWeeklyRetainRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxA
nalysisGetWeeklyRetain
Req
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
...
...
@@ -42,11 +40,11 @@ public class WxXcxAnalysisGetWeeklyRetainRequest implements WxXwxRequestUrl, WxX
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxA
uthCheckEncryptedData
Res
getResponse
()
{
public
WxXcxA
nalysisGetWeeklyRetain
Res
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxA
uthCheckEncryptedDataRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthCheckEncryptedData
Res
>()
{
WxXcxA
nalysisGetWeeklyRetainRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetWeeklyRetain
Res
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/summary/WxXcxAnalysisGetDailySummaryRequest.java
View file @
fdb9020f
...
...
@@ -3,7 +3,6 @@ package com.yanzuoguang.wxxcx.analysis.summary;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.auth.user.WxXcxAuthCheckEncryptedDataReq
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -11,14 +10,14 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetDailySummaryRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetDailySummaryRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxA
uthCheckEncryptedData
Req
req
;
private
final
WxXcxA
nalysisGetDailySummary
Req
req
;
public
WxXcxAnalysisGetDailySummaryRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxA
uthCheckEncryptedData
Req
req
)
{
public
WxXcxAnalysisGetDailySummaryRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxA
nalysisGetDailySummary
Req
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/trend/WxXcxAnalysisGetDailyVisitTrendRequest.java
View file @
fdb9020f
...
...
@@ -11,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetDailyVisitTrendRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetDailyVisitTrendRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/trend/WxXcxAnalysisGetMonthlyVisitTrendRequest.java
View file @
fdb9020f
...
...
@@ -10,7 +10,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetMonthlyVisitTrendRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetMonthlyVisitTrendRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/analysis/trend/WxXcxAnalysisGetWeeklyVisitTrendRequest.java
View file @
fdb9020f
...
...
@@ -11,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAnalysisGetWeeklyVisitTrendRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAnalysisGetWeeklyVisitTrendRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/login/WxXcxAuthCode2SessionRequest.java
View file @
fdb9020f
...
...
@@ -10,7 +10,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 颜佐光
*/
public
class
WxXcxAuthCode2SessionRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
{
public
class
WxXcxAuthCode2SessionRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/
user
/WxXcxAuthGetAccessTokenReq.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/
token
/WxXcxAuthGetAccessTokenReq.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
auth
.
user
;
package
com
.
yanzuoguang
.
wxxcx
.
auth
.
token
;
/**
* 获取小程序全局唯一后台接口调用凭据 请求
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/
user
/WxXcxAuthGetAccessTokenRequest.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/
token
/WxXcxAuthGetAccessTokenRequest.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
auth
.
user
;
package
com
.
yanzuoguang
.
wxxcx
.
auth
.
token
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionReq
;
import
com.yanzuoguang.wxxcx.auth.login.WxXcxResponseAuthCode2SessionRes
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -12,13 +10,13 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAuthGetAccessTokenRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
{
public
class
WxXcxAuthGetAccessTokenRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAuth
Code2Sessio
nReq
req
;
private
final
WxXcxAuth
GetAccessToke
nReq
req
;
public
WxXcxAuthGetAccessTokenRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAuth
Code2Sessio
nReq
req
)
{
public
WxXcxAuthGetAccessTokenRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAuth
GetAccessToke
nReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
req
=
req
;
...
...
@@ -34,11 +32,11 @@ public class WxXcxAuthGetAccessTokenRequest implements WxXwxRequestUrl, WxXcxReq
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcx
ResponseAuthCode2Sessio
nRes
getResponse
()
{
public
WxXcx
AuthGetAccessToke
nRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcx
ResponseAuthCode2SessionRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxResponseAuthCode2Sessio
nRes
>()
{
WxXcx
AuthGetAccessTokenRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthGetAccessToke
nRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/
user
/WxXcxAuthGetAccessTokenRes.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/
token
/WxXcxAuthGetAccessTokenRes.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
auth
.
user
;
package
com
.
yanzuoguang
.
wxxcx
.
auth
.
token
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/user/WxXcxAuthCheckEncryptedDataRequest.java
View file @
fdb9020f
...
...
@@ -10,7 +10,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 颜佐光
*/
public
class
WxXcxAuthCheckEncryptedDataRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxAuthCheckEncryptedDataRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/user/WxXcxAuthCheckEncryptedDataRes.java
View file @
fdb9020f
...
...
@@ -11,17 +11,17 @@ public class WxXcxAuthCheckEncryptedDataRes extends WxXcxResponseBaseError {
/**
* 用户唯一标识
*/
private
String
vaild
;
private
boolean
vaild
;
/**
* 用户唯一标识
*/
private
double
create_time
;
public
String
get
Vaild
()
{
public
boolean
is
Vaild
()
{
return
vaild
;
}
public
void
setVaild
(
String
vaild
)
{
public
void
setVaild
(
boolean
vaild
)
{
this
.
vaild
=
vaild
;
}
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/user/WxXcxAuthGetPaidUnionIdRequest.java
View file @
fdb9020f
...
...
@@ -11,14 +11,14 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAuthGetPaidUnionIdRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
{
public
class
WxXcxAuthGetPaidUnionIdRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxAuth
CheckEncryptedData
Req
req
;
private
final
WxXcxAuth
GetPaidUnionId
Req
req
;
public
WxXcxAuthGetPaidUnionIdRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxAuth
CheckEncryptedData
Req
req
)
{
public
WxXcxAuthGetPaidUnionIdRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxAuth
GetPaidUnionId
Req
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
...
...
@@ -35,11 +35,11 @@ public class WxXcxAuthGetPaidUnionIdRequest implements WxXwxRequestUrl, WxXcxReq
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
public
WxXcxAuth
CheckEncryptedData
Res
getResponse
()
{
public
WxXcxAuth
GetPaidUnionId
Res
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAuth
CheckEncryptedDataRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthCheckEncryptedData
Res
>()
{
WxXcxAuth
GetPaidUnionIdRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthGetPaidUnionId
Res
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/user/WxXcxAuthGetPaidUnionIdRes.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
auth
.
user
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 用户支付完成后,获取该用户的 UnionId 响应
* 注意:调用前需要用户完成支付,且在支付后的五分钟内有效。
*
* @author 李贤军
*/
public
class
WxXcxAuthGetPaidUnionIdRes
{
public
class
WxXcxAuthGetPaidUnionIdRes
extends
WxXcxResponseBaseError
{
/**
* 用户唯一标识,调用成功后返回
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/user/WxXcxAuthGetPluginOpenPidRequest.java
View file @
fdb9020f
...
...
@@ -3,8 +3,6 @@ package com.yanzuoguang.wxxcx.auth.user;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionReq
;
import
com.yanzuoguang.wxxcx.auth.login.WxXcxResponseAuthCode2SessionRes
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -12,13 +10,13 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxAuthGetPluginOpenPidRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
{
public
class
WxXcxAuthGetPluginOpenPidRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAuth
Code2Session
Req
req
;
private
final
WxXcxAuth
GetPluginOpenPid
Req
req
;
public
WxXcxAuthGetPluginOpenPidRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAuth
Code2Session
Req
req
)
{
public
WxXcxAuthGetPluginOpenPidRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAuth
GetPluginOpenPid
Req
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
req
=
req
;
...
...
@@ -34,11 +32,11 @@ public class WxXcxAuthGetPluginOpenPidRequest implements WxXwxRequestUrl, WxXcxR
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcx
ResponseAuthCode2Session
Res
getResponse
()
{
public
WxXcx
AuthGetPluginOpenPid
Res
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcx
ResponseAuthCode2SessionRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxResponseAuthCode2Session
Res
>()
{
WxXcx
AuthGetPluginOpenPidRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthGetPluginOpenPid
Res
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/auth/user/WxXcxAuthGetPluginOpenPidRes.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
auth
.
user
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 通过 wx.pluginLogin 接口获得插件用户标志凭证 code 后传到开发者服务器 响应
*
* @author 李贤军
*/
public
class
WxXcxAuthGetPluginOpenPidRes
{
public
class
WxXcxAuthGetPluginOpenPidRes
extends
WxXcxResponseBaseError
{
/**
* 插件用户的唯一标识
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/base/WxXcxConfig.java
View file @
fdb9020f
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/base/WxXcxRequest.java
View file @
fdb9020f
...
...
@@ -15,5 +15,5 @@ public interface WxXcxRequest {
* @param <T> 返回结果类型
* @return 返回请求结果
*/
<
T
>
T
request
(
WxX
w
xRequestUrl
req
,
WxXcxResponseConvert
<
T
>
convert
);
<
T
>
T
request
(
WxX
c
xRequestUrl
req
,
WxXcxResponseConvert
<
T
>
convert
);
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/base/WxXcxRequestImpl.java
View file @
fdb9020f
...
...
@@ -20,7 +20,7 @@ public class WxXcxRequestImpl implements WxXcxRequest {
private
String
defaultCharSet
;
@Override
public
<
T
>
T
request
(
WxX
w
xRequestUrl
req
,
WxXcxResponseConvert
<
T
>
convert
)
{
public
<
T
>
T
request
(
WxX
c
xRequestUrl
req
,
WxXcxResponseConvert
<
T
>
convert
)
{
String
url
=
req
.
getUrl
();
String
charSet
=
defaultCharSet
;
Map
<
String
,
String
>
header
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/base/WxX
w
xRequestUrl.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/base/WxX
c
xRequestUrl.java
View file @
fdb9020f
...
...
@@ -5,7 +5,7 @@ package com.yanzuoguang.wxxcx.base;
*
* @author 颜佐光
*/
public
interface
WxX
w
xRequestUrl
{
public
interface
WxX
c
xRequestUrl
{
/**
* 获取请求地址
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/gettempmedia/WxXcxCustomerServiceMessageGetTempMediaReq.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/gettempmedia/WxXcxCustomerServiceMessageGetTempMediaReq.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
gettempmedia
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
gettempmedia
;
/**
* 获取客服消息内的临时素材 请求
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/gettempmedia/WxXcxCustomerServiceMessageGetTempMediaRequest.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/gettempmedia/WxXcxCustomerServiceMessageGetTempMediaRequest.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
gettempmedia
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
gettempmedia
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionReq
;
import
com.yanzuoguang.wxxcx.auth.login.WxXcxResponseAuthCode2SessionRes
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -13,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxCustomerServiceMessageGetTempMediaRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
{
public
class
WxXcxCustomerServiceMessageGetTempMediaRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/gettempmedia/WxXcxCustomerServiceMessageGetTempMediaRes.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/gettempmedia/WxXcxCustomerServiceMessageGetTempMediaRes.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
gettempmedia
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
gettempmedia
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/send/WxXcxCustomerServiceMessageSendImageReq.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/send/WxXcxCustomerServiceMessageSendImageReq.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
send
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
send
;
/**
* 发送客服消息给用户 请求图片消息内容
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/send/WxXcxCustomerServiceMessageSendLinkReq.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/send/WxXcxCustomerServiceMessageSendLinkReq.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
send
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
send
;
/**
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/send/WxXcxCustomerServiceMessageSendMiniProgramPageReq.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/send/WxXcxCustomerServiceMessageSendMiniProgramPageReq.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
send
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
send
;
/**
* 发送客服消息给用户 请求小程序卡片内容
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/send/WxXcxCustomerServiceMessageSendReq.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/send/WxXcxCustomerServiceMessageSendReq.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
send
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
send
;
/**
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/send/WxXcxCustomerServiceMessageSendRequest.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/send/WxXcxCustomerServiceMessageSendRequest.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
send
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
send
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.analysis.distribution.WxXcxAnalysisGetVisitDistributionReq
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -11,14 +10,14 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxCustomerServiceMessageSendRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxCustomerServiceMessageSendRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcx
AnalysisGetVisitDistribution
Req
req
;
private
final
WxXcx
CustomerServiceMessageSend
Req
req
;
public
WxXcxCustomerServiceMessageSendRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcx
AnalysisGetVisitDistribution
Req
req
)
{
public
WxXcxCustomerServiceMessageSendRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcx
CustomerServiceMessageSend
Req
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/send/WxXcxCustomerServiceMessageSendRes.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/send/WxXcxCustomerServiceMessageSendRes.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
send
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
send
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/send/WxXcxCustomerServiceMessageSendTextReq.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/send/WxXcxCustomerServiceMessageSendTextReq.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
send
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
send
;
/**
* 发送客服消息给用户 请求文本消息内容
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/settyping/WxXcxCustomerServiceMessageSetTypingReq.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/settyping/WxXcxCustomerServiceMessageSetTypingReq.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
settyping
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
settyping
;
/**
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/settyping/WxXcxCustomerServiceMessageSetTypingRequest.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/settyping/WxXcxCustomerServiceMessageSetTypingRequest.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
settyping
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
settyping
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.analysis.distribution.WxXcxAnalysisGetVisitDistributionReq
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.customer.send.WxXcxCustomerServiceMessageSendRes
;
/**
* 下发客服当前输入状态给用户 转换
*
* @author 李贤军
*/
public
class
WxXcxCustomerServiceMessageSetTypingRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxCustomerServiceMessageSetTypingRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/settyping/WxXcxCustomerServiceMessageSetTypingRes.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/settyping/WxXcxCustomerServiceMessageSetTypingRes.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
settyping
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
settyping
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/uploadtempmedia/WxXcxCustomerServiceMessageUploadTempMediaReq.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/uploadtempmedia/WxXcxCustomerServiceMessageUploadTempMediaReq.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
uploadtempmedia
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
uploadtempmedia
;
/**
* 把媒体文件上传到微信服务器 请求
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/uploadtempmedia/WxXcxCustomerServiceMessageUploadTempMediaRequest.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/uploadtempmedia/WxXcxCustomerServiceMessageUploadTempMediaRequest.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
uploadtempmedia
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
uploadtempmedia
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.customer.settyping.WxXcxCustomerServiceMessageSetTypingReq
;
import
com.yanzuoguang.wxxcx.customer.settyping.WxXcxCustomerServiceMessageSetTypingRes
;
/**
* @author 李贤军
*/
public
class
WxXcxCustomerServiceMessageUploadTempMediaRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxCustomerServiceMessageUploadTempMediaRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer/uploadtempmedia/WxXcxCustomerServiceMessageUploadTempMediaRes.java
→
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/customer
servicemessage
/uploadtempmedia/WxXcxCustomerServiceMessageUploadTempMediaRes.java
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
customer
.
uploadtempmedia
;
package
com
.
yanzuoguang
.
wxxcx
.
customer
servicemessage
.
uploadtempmedia
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiAddRequest.java
View file @
fdb9020f
...
...
@@ -3,14 +3,12 @@ package com.yanzuoguang.wxxcx.nearbypoi;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.analysis.distribution.WxXcxAnalysisGetVisitDistributionReq
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.customer.send.WxXcxCustomerServiceMessageSendRes
;
/**
* @author 李贤军
*/
public
class
WxXcxNearbyPoiAddRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxNearbyPoiAddRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiDeleteRequest.java
View file @
fdb9020f
...
...
@@ -11,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxNearbyPoiDeleteRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxNearbyPoiDeleteRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiGetListRequest.java
View file @
fdb9020f
...
...
@@ -10,7 +10,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxNearbyPoiGetListRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxNearbyPoiGetListRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiSetShowStatusReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
nearbypoi
;
/**
* 展示/取消展示附近小程序 请求
*
* @author 李贤军
*/
public
class
WxXcxNearbyPoiSetShowStatusReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 附近地点 ID
*/
private
String
poi_id
;
/**
* 是否展示
* 0 不展示
* 1 展示
*/
private
Integer
status
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
String
getPoi_id
()
{
return
poi_id
;
}
public
void
setPoi_id
(
String
poi_id
)
{
this
.
poi_id
=
poi_id
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiSetShowStatusRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
nearbypoi
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 展示/取消展示附近小程序 转换
*
* @author 李贤军
*/
public
class
WxXcxNearbyPoiSetShowStatusRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxNearbyPoiSetShowStatusReq
req
;
public
WxXcxNearbyPoiSetShowStatusRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxNearbyPoiSetShowStatusReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getNearbyPoiSetShowStatus
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxNearbyPoiSetShowStatusRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxNearbyPoiSetShowStatusRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxNearbyPoiSetShowStatusRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiSetShowStatusRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
nearbypoi
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 展示/取消展示附近小程序 响应
*
* @author 李贤军
*/
public
class
WxXcxNearbyPoiSetShowStatusRes
extends
WxXcxResponseBaseError
{
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/WxXcxPluginManagerApplyPluginRequest.java
View file @
fdb9020f
...
...
@@ -10,7 +10,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxPluginManagerApplyPluginRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxPluginManagerApplyPluginRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/WxXcxPluginManagerGetPluginListRequest.java
View file @
fdb9020f
...
...
@@ -11,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxPluginManagerGetPluginListRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxPluginManagerGetPluginListRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/WxXcxPluginManagerSetDevPluginApplyStatusRequest.java
View file @
fdb9020f
...
...
@@ -11,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxPluginManagerSetDevPluginApplyStatusRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxPluginManagerSetDevPluginApplyStatusRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/WxXcxPluginManagerUnbindPluginRequest.java
View file @
fdb9020f
...
...
@@ -11,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxPluginManagerUnbindPluginRequest
implements
WxXw
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxPluginManagerUnbindPluginRequest
implements
WxXc
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/WxXxcPluginManagerGetPluginDevApplyListRequest.java
View file @
fdb9020f
...
...
@@ -7,9 +7,10 @@ import com.yanzuoguang.wxxcx.base.*;
/**
* 获取当前所有插件使用方(供插件开发者调用) 转换
*
* @author 李贤军
*/
public
class
WxXxcPluginManagerGetPluginDevApplyListRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXxcPluginManagerGetPluginDevApplyListRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/redpacketcover/WxXcxRedPacketCoverGetAuthenticationUrlDataRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
redpacketcover
;
/**
* 指定用户可以领取的链接
*
* @author 李贤军
*/
public
class
WxXcxRedPacketCoverGetAuthenticationUrlDataRes
{
/**
* 指定用户可以领取的链接(带鉴权的链接)
*/
private
String
url
;
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/redpacketcover/WxXcxRedPacketCoverGetAuthenticationUrlReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
redpacketcover
;
/**
* 本接口用于获得指定用户可以领取的红包封面链接 请求
* 获取参数 ctoken 参考微信红包封面开放平台。
*
* @author 李贤军
*/
public
class
WxXcxRedPacketCoverGetAuthenticationUrlReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 可领取用户的openid
*/
private
String
openid
;
/**
* 在红包封面平台获取发放ctoken(需要指定可以发放的appid)
*/
private
String
ctoken
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
String
getOpenid
()
{
return
openid
;
}
public
void
setOpenid
(
String
openid
)
{
this
.
openid
=
openid
;
}
public
String
getCtoken
()
{
return
ctoken
;
}
public
void
setCtoken
(
String
ctoken
)
{
this
.
ctoken
=
ctoken
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/redpacketcover/WxXcxRedPacketCoverGetAuthenticationUrlRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
redpacketcover
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 本接口用于获得指定用户可以领取的红包封面链接 转换
* 获取参数 ctoken 参考微信红包封面开放平台。
*
* @author 李贤军
*/
public
class
WxXcxRedPacketCoverGetAuthenticationUrlRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxRedPacketCoverGetAuthenticationUrlReq
req
;
public
WxXcxRedPacketCoverGetAuthenticationUrlRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxRedPacketCoverGetAuthenticationUrlReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getRedPacketCoverGetAuthenticationUrl
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxRedPacketCoverGetAuthenticationUrlRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxRedPacketCoverGetAuthenticationUrlRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxRedPacketCoverGetAuthenticationUrlRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/redpacketcover/WxXcxRedPacketCoverGetAuthenticationUrlRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
redpacketcover
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 本接口用于获得指定用户可以领取的红包封面链接 响应
* 获取参数 ctoken 参考微信红包封面开放平台。
*
* @author 李贤军
*/
public
class
WxXcxRedPacketCoverGetAuthenticationUrlRes
extends
WxXcxResponseBaseError
{
/**
* 指定用户可以领取的链接(带鉴权的链接)
*/
private
WxXcxRedPacketCoverGetAuthenticationUrlDataRes
data
;
public
WxXcxRedPacketCoverGetAuthenticationUrlDataRes
getData
()
{
return
data
;
}
public
void
setData
(
WxXcxRedPacketCoverGetAuthenticationUrlDataRes
data
)
{
this
.
data
=
data
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMediaCheckAsyncDetailRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
/**
* detail
*
* @author 李贤军
*/
public
class
WxXcxSecurityMediaCheckAsyncDetailRes
{
/**
* strategy
*/
private
String
strategy
;
/**
* errcode
*/
private
String
errcode
;
/**
* suggest
*/
private
String
suggest
;
/**
* label
*/
private
String
label
;
/**
* prob
*/
private
String
prob
;
public
String
getStrategy
()
{
return
strategy
;
}
public
void
setStrategy
(
String
strategy
)
{
this
.
strategy
=
strategy
;
}
public
String
getErrcode
()
{
return
errcode
;
}
public
void
setErrcode
(
String
errcode
)
{
this
.
errcode
=
errcode
;
}
public
String
getSuggest
()
{
return
suggest
;
}
public
void
setSuggest
(
String
suggest
)
{
this
.
suggest
=
suggest
;
}
public
String
getLabel
()
{
return
label
;
}
public
void
setLabel
(
String
label
)
{
this
.
label
=
label
;
}
public
String
getProb
()
{
return
prob
;
}
public
void
setProb
(
String
prob
)
{
this
.
prob
=
prob
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMediaCheckAsyncReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
/**
* 异步校验图片/音频是否含有违法违规内容 请求
* 1.0版本在2021年9月1日停止更新,请尽快更新至2.0
* 应用场景举例:
* 语音风险识别:社交类用户发表的语音内容检测;
* 图片智能鉴黄:涉及拍照的工具类应用(如美拍,识图类应用)用户拍照上传检测;电商类商品上架图片检测;媒体类用户文章里的图片检测等;
* 敏感人脸识别:用户头像;媒体类用户文章里的图片检测;社交类用户上传的图片检测等。 频率限制:单个 appId 调用上限为 2000 次/分钟,200,000 次/天;文件大小限制:单个文件大小不超过10M
*
* @author 李贤军
*/
public
class
WxXcxSecurityMediaCheckAsyncReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 要检测的图片或音频的url,支持图片格式包括 jpg , jepg, png, bmp, gif(取首帧),支持的音频格式包括mp3, aac, ac3, wma, flac, vorbis, opus, wav
*/
private
String
media_url
;
/**
* 1:音频;2:图片
*/
private
int
media_type
;
/**
* 接口版本号,2.0版本为固定值2
*/
private
int
version
;
/**
* 用户的openid(用户需在近两小时访问过小程序)
*/
private
String
openid
;
/**
* 场景枚举值(1 资料;2 评论;3 论坛;4 社交日志)
*/
private
int
scene
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
String
getMedia_url
()
{
return
media_url
;
}
public
void
setMedia_url
(
String
media_url
)
{
this
.
media_url
=
media_url
;
}
public
int
getMedia_type
()
{
return
media_type
;
}
public
void
setMedia_type
(
int
media_type
)
{
this
.
media_type
=
media_type
;
}
public
int
getVersion
()
{
return
version
;
}
public
void
setVersion
(
int
version
)
{
this
.
version
=
version
;
}
public
String
getOpenid
()
{
return
openid
;
}
public
void
setOpenid
(
String
openid
)
{
this
.
openid
=
openid
;
}
public
int
getScene
()
{
return
scene
;
}
public
void
setScene
(
int
scene
)
{
this
.
scene
=
scene
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMediaCheckAsyncRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 异步校验图片/音频是否含有违法违规内容 转换
* <p>
* 应用场景举例:
* 语音风险识别:社交类用户发表的语音内容检测;
* 图片智能鉴黄:涉及拍照的工具类应用(如美拍,识图类应用)用户拍照上传检测;电商类商品上架图片检测;媒体类用户文章里的图片检测等;
* 敏感人脸识别:用户头像;媒体类用户文章里的图片检测;社交类用户上传的图片检测等。 频率限制:单个 appId 调用上限为 2000 次/分钟,200,000 次/天;文件大小限制:单个文件大小不超过10M
*
* @author 李贤军
*/
public
class
WxXcxSecurityMediaCheckAsyncRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxSecurityMediaCheckAsyncReq
req
;
public
WxXcxSecurityMediaCheckAsyncRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxSecurityMediaCheckAsyncReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getSecurityMediaCheckAsync
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxSecurityMediaCheckAsyncRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxSecurityMediaCheckAsyncRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxSecurityMediaCheckAsyncRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMediaCheckAsyncRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 异步校验图片/音频是否含有违法违规内容 响应
*
* 应用场景举例:
* 语音风险识别:社交类用户发表的语音内容检测;
* 图片智能鉴黄:涉及拍照的工具类应用(如美拍,识图类应用)用户拍照上传检测;电商类商品上架图片检测;媒体类用户文章里的图片检测等;
* 敏感人脸识别:用户头像;媒体类用户文章里的图片检测;社交类用户上传的图片检测等。 频率限制:单个 appId 调用上限为 2000 次/分钟,200,000 次/天;文件大小限制:单个文件大小不超过10M
*
* @author 李贤军
*/
public
class
WxXcxSecurityMediaCheckAsyncRes
extends
WxXcxResponseBaseError
{
/**
* 唯一请求标识,标记单次请求,用于匹配异步推送结果
*/
private
String
ToUserName
;
/**
* 唯一请求标识
*/
private
String
FromUserName
;
/**
* 唯一请求标识
*/
private
double
CreateTime
;
/**
* 唯一请求标识
*/
private
String
MsgType
;
/**
* 唯一请求标识
*/
private
String
Event
;
/**
* 唯一请求标识
*/
private
String
appid
;
/**
* 唯一请求标识
*/
private
String
trace_id
;
/**
* 唯一请求标识
*/
private
int
version
;
/**
* 唯一请求标识
*/
private
WxXcxSecurityMediaCheckAsyncResultRes
result
;
/**
* 唯一请求标识
*/
private
WxXcxSecurityMediaCheckAsyncDetailRes
detail
;
public
String
getToUserName
()
{
return
ToUserName
;
}
public
void
setToUserName
(
String
toUserName
)
{
ToUserName
=
toUserName
;
}
public
String
getFromUserName
()
{
return
FromUserName
;
}
public
void
setFromUserName
(
String
fromUserName
)
{
FromUserName
=
fromUserName
;
}
public
double
getCreateTime
()
{
return
CreateTime
;
}
public
void
setCreateTime
(
double
createTime
)
{
CreateTime
=
createTime
;
}
public
String
getMsgType
()
{
return
MsgType
;
}
public
void
setMsgType
(
String
msgType
)
{
MsgType
=
msgType
;
}
public
String
getEvent
()
{
return
Event
;
}
public
void
setEvent
(
String
event
)
{
Event
=
event
;
}
public
String
getAppid
()
{
return
appid
;
}
public
void
setAppid
(
String
appid
)
{
this
.
appid
=
appid
;
}
public
String
getTrace_id
()
{
return
trace_id
;
}
public
void
setTrace_id
(
String
trace_id
)
{
this
.
trace_id
=
trace_id
;
}
public
int
getVersion
()
{
return
version
;
}
public
void
setVersion
(
int
version
)
{
this
.
version
=
version
;
}
public
WxXcxSecurityMediaCheckAsyncResultRes
getResult
()
{
return
result
;
}
public
void
setResult
(
WxXcxSecurityMediaCheckAsyncResultRes
result
)
{
this
.
result
=
result
;
}
public
WxXcxSecurityMediaCheckAsyncDetailRes
getDetail
()
{
return
detail
;
}
public
void
setDetail
(
WxXcxSecurityMediaCheckAsyncDetailRes
detail
)
{
this
.
detail
=
detail
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMediaCheckAsyncResultRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
/**
* result
*
* @author 李贤军
*/
public
class
WxXcxSecurityMediaCheckAsyncResultRes
{
/**
* suggest
*/
private
String
suggest
;
/**
* label
*/
private
String
label
;
public
String
getSuggest
()
{
return
suggest
;
}
public
void
setSuggest
(
String
suggest
)
{
this
.
suggest
=
suggest
;
}
public
String
getLabel
()
{
return
label
;
}
public
void
setLabel
(
String
label
)
{
this
.
label
=
label
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMsgSecCheckDetailRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
/**
* detail包含多个策略类型的检测结果,策略类型的检查结果可能存在的属性
*
* @author 李贤军
*/
public
class
WxXcxSecurityMsgSecCheckDetailRes
{
/**
* 策略类型
*/
private
String
strategy
;
/**
* 错误码,仅当该值为0时,该项结果有效
*/
private
Integer
errcode
;
/**
* 建议,有risky、pass、review三种值
*/
private
String
suggest
;
/**
* 命中标签枚举值,100 正常;10001 广告;20001 时政;20002 色情;20003 辱骂;20006 违法犯罪;20008 欺诈;20012 低俗;20013 版权;21000 其他
*/
private
int
label
;
/**
* 0-100,代表置信度,越高代表越有可能属于当前返回的标签(label)
*/
private
int
prob
;
/**
* 命中的自定义关键词
*/
private
String
keyword
;
public
String
getStrategy
()
{
return
strategy
;
}
public
void
setStrategy
(
String
strategy
)
{
this
.
strategy
=
strategy
;
}
public
Integer
getErrcode
()
{
return
errcode
;
}
public
void
setErrcode
(
Integer
errcode
)
{
this
.
errcode
=
errcode
;
}
public
String
getSuggest
()
{
return
suggest
;
}
public
void
setSuggest
(
String
suggest
)
{
this
.
suggest
=
suggest
;
}
public
int
getLabel
()
{
return
label
;
}
public
void
setLabel
(
int
label
)
{
this
.
label
=
label
;
}
public
int
getProb
()
{
return
prob
;
}
public
void
setProb
(
int
prob
)
{
this
.
prob
=
prob
;
}
public
String
getKeyword
()
{
return
keyword
;
}
public
void
setKeyword
(
String
keyword
)
{
this
.
keyword
=
keyword
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMsgSecCheckReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
/**
* 检查一段文本是否含有违法违规内容 请求
* <p>
* 1.0版本在2021年9月1日停止更新,请尽快更新至2.0
* 应用场景举例:
* 用户个人资料违规文字检测;
* 媒体新闻类用户发表文章,评论内容检测;
* 游戏类用户编辑上传的素材(如答题类小游戏用户上传的问题及答案)检测等。 频率限制:单个 appId 调用上限为 4000 次/分钟,2,000,000 次/天*
*
* @author 李贤军
*/
public
class
WxXcxSecurityMsgSecCheckReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 接口版本号,2.0版本为固定值2
*/
private
int
version
;
/**
* 用户的openid(用户需在近两小时访问过小程序)
*/
private
String
openid
;
/**
* 场景枚举值(1 资料;2 评论;3 论坛;4 社交日志
*/
private
int
scene
;
/**
* 需检测的文本内容,文本字数的上限为2500字,需使用UTF-8编码
*/
private
String
content
;
/**
* 用户昵称,需使用UTF-8编码
*/
private
String
nickname
;
/**
* 文本标题,需使用UTF-8编码
*/
private
String
title
;
/**
* 个性签名,该参数仅在资料类场景有效(scene=1),需使用UTF-8编码
*/
private
String
signature
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
int
getVersion
()
{
return
version
;
}
public
void
setVersion
(
int
version
)
{
this
.
version
=
version
;
}
public
String
getOpenid
()
{
return
openid
;
}
public
void
setOpenid
(
String
openid
)
{
this
.
openid
=
openid
;
}
public
int
getScene
()
{
return
scene
;
}
public
void
setScene
(
int
scene
)
{
this
.
scene
=
scene
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
String
getNickname
()
{
return
nickname
;
}
public
void
setNickname
(
String
nickname
)
{
this
.
nickname
=
nickname
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getSignature
()
{
return
signature
;
}
public
void
setSignature
(
String
signature
)
{
this
.
signature
=
signature
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMsgSecCheckRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 检查一段文本是否含有违法违规内容 转换
* <p>
* 1.0版本在2021年9月1日停止更新,请尽快更新至2.0
* 应用场景举例:
* 用户个人资料违规文字检测;
* 媒体新闻类用户发表文章,评论内容检测;
* 游戏类用户编辑上传的素材(如答题类小游戏用户上传的问题及答案)检测等。 频率限制:单个 appId 调用上限为 4000 次/分钟,2,000,000 次/天*
*
* @author 李贤军
*/
public
class
WxXcxSecurityMsgSecCheckRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxSecurityMsgSecCheckReq
req
;
public
WxXcxSecurityMsgSecCheckRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxSecurityMsgSecCheckReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getSecurityMsgSecCheck
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxSecurityMsgSecCheckRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxSecurityMsgSecCheckRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxSecurityMsgSecCheckRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMsgSecCheckRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 检查一段文本是否含有违法违规内容 响应
* <p>
* 1.0版本在2021年9月1日停止更新,请尽快更新至2.0
* 应用场景举例:
* 用户个人资料违规文字检测;
* 媒体新闻类用户发表文章,评论内容检测;
* 游戏类用户编辑上传的素材(如答题类小游戏用户上传的问题及答案)检测等。 频率限制:单个 appId 调用上限为 4000 次/分钟,2,000,000 次/天*
*
* @author 李贤军
*/
public
class
WxXcxSecurityMsgSecCheckRes
extends
WxXcxResponseBaseError
{
/**
* 唯一请求标识,标记单次请求
*/
private
String
trace_id
;
/**
* 唯一请求标识,标记单次请求
*/
private
WxXcxSecurityMsgSecCheckResultRes
result
;
/**
* 唯一请求标识,标记单次请求
*/
private
WxXcxSecurityMsgSecCheckDetailRes
detail
;
public
String
getTrace_id
()
{
return
trace_id
;
}
public
void
setTrace_id
(
String
trace_id
)
{
this
.
trace_id
=
trace_id
;
}
public
WxXcxSecurityMsgSecCheckResultRes
getResult
()
{
return
result
;
}
public
void
setResult
(
WxXcxSecurityMsgSecCheckResultRes
result
)
{
this
.
result
=
result
;
}
public
WxXcxSecurityMsgSecCheckDetailRes
getDetail
()
{
return
detail
;
}
public
void
setDetail
(
WxXcxSecurityMsgSecCheckDetailRes
detail
)
{
this
.
detail
=
detail
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMsgSecCheckResultRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
security
;
/**
* result综合了多个策略的结果给出了建议,包含的属性
*
* @author 李贤军
*/
public
class
WxXcxSecurityMsgSecCheckResultRes
{
/**
* 建议,有risky、pass、review三种值
*/
private
String
suggest
;
/**
* 命中标签枚举值,100 正常;10001 广告;20001 时政;20002 色情;20003 辱骂;20006 违法犯罪;20008 欺诈;20012 低俗;20013 版权;21000 其他
*/
private
String
label
;
public
String
getSuggest
()
{
return
suggest
;
}
public
void
setSuggest
(
String
suggest
)
{
this
.
suggest
=
suggest
;
}
public
String
getLabel
()
{
return
label
;
}
public
void
setLabel
(
String
label
)
{
this
.
label
=
label
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/uniformmessage/WxXcxUniformMessageSendRequest.java
View file @
fdb9020f
...
...
@@ -10,7 +10,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxUniformMessageSendRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxUniformMessageSendRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/updatablemessage/WxXcxUpdatableMessageCreateActivityIdRequest.java
View file @
fdb9020f
...
...
@@ -3,8 +3,6 @@ package com.yanzuoguang.wxxcx.updatablemessage;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.auth.login.WxXcxAuthCode2SessionReq
;
import
com.yanzuoguang.wxxcx.auth.login.WxXcxResponseAuthCode2SessionRes
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -12,7 +10,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxUpdatableMessageCreateActivityIdRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
{
public
class
WxXcxUpdatableMessageCreateActivityIdRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/updatablemessage/WxXcxUpdatableMessageCreateActivityIdRes.java
View file @
fdb9020f
...
...
@@ -16,4 +16,20 @@ public class WxXcxUpdatableMessageCreateActivityIdRes extends WxXcxResponseBaseE
* activity_id 的过期时间戳。默认24小时后过期
*/
private
double
expiration_time
;
public
String
getActivity_id
()
{
return
activity_id
;
}
public
void
setActivity_id
(
String
activity_id
)
{
this
.
activity_id
=
activity_id
;
}
public
double
getExpiration_time
()
{
return
expiration_time
;
}
public
void
setExpiration_time
(
double
expiration_time
)
{
this
.
expiration_time
=
expiration_time
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/updatablemessage/WxXcxUpdatableMessageSetUpdatableMsgRequest.java
View file @
fdb9020f
...
...
@@ -11,7 +11,7 @@ import com.yanzuoguang.wxxcx.base.*;
*
* @author 李贤军
*/
public
class
WxXcxUpdatableMessageSetUpdatableMsgRequest
implements
WxX
w
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
public
class
WxXcxUpdatableMessageSetUpdatableMsgRequest
implements
WxX
c
xRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
...
...
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkGenerateCloudBaseReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urllink
;
/**
* cloud_base 的结构
*
* @author 李贤军
*/
public
class
WxXcxUrlLinkGenerateCloudBaseReq
{
/**
* 云开发环境
*/
private
String
env
;
/**
* 静态网站自定义域名,不填则使用默认域名
*/
private
String
domain
;
/**
* 云开发静态网站 H5 页面路径,不可携带 query
*/
private
String
path
;
/**
* 云开发静态网站 H5 页面 query 参数,最大 1024 个字符,只支持数字,大小写英文以及部分特殊字符:`!#$&'()*+,/:;=?@-._~%``
*/
private
String
query
;
/**
* 第三方批量代云开发时必填,表示创建该 env 的 appid (小程序/第三方平台)
*/
private
String
resource_appid
;
public
String
getEnv
()
{
return
env
;
}
public
void
setEnv
(
String
env
)
{
this
.
env
=
env
;
}
public
String
getDomain
()
{
return
domain
;
}
public
void
setDomain
(
String
domain
)
{
this
.
domain
=
domain
;
}
public
String
getPath
()
{
return
path
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
String
getQuery
()
{
return
query
;
}
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
}
public
String
getResource_appid
()
{
return
resource_appid
;
}
public
void
setResource_appid
(
String
resource_appid
)
{
this
.
resource_appid
=
resource_appid
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkGenerateReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urllink
;
/**
* 获取小程序 URL Link 请求
* 适用于短信、邮件、网页、微信内等拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放
*
* @author 李贤军
*/
public
class
WxXcxUrlLinkGenerateReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 通过 URL Link 进入的小程序页面路径,必须是已经发布的小程序存在的页面,不可携带 query 。path 为空时会跳转小程序主页
*/
private
String
path
;
/**
* 通过 URL Link 进入小程序时的query,最大1024个字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~%
*/
private
String
query
;
/**
* 要打开的小程序版本。正式版为 "release",体验版为"trial",开发版为"develop",仅在微信外打开时生效。
*/
private
String
env_version
;
/**
* 小程序 URL Link 失效类型,失效时间:0,失效间隔天数:1
*/
private
int
expire_type
;
/**
* 到期失效的 URL Link 的失效时间,为 Unix 时间戳。生成的到期失效 URL Link 在该时间前有效。最长有效期为30天。expire_type 为 0 必填
*/
private
int
expire_time
;
/**
* 到期失效的URL Link的失效间隔天数。生成的到期失效URL Link在该间隔时间到达前有效。最长间隔天数为30天。expire_type 为 1 必填
*/
private
int
expire_interval
;
/**
* 云开发静态网站自定义 H5 配置参数,可配置中转的云开发 H5 页面。不填默认用官方 H5 页面
*/
private
WxXcxUrlLinkGenerateCloudBaseReq
cloud_base
;
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkGenerateRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urllink
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 获取小程序 URL Link 转换
* 适用于短信、邮件、网页、微信内等拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放
*
* @author 李贤军
*/
public
class
WxXcxUrlLinkGenerateRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxUrlLinkGenerateReq
req
;
public
WxXcxUrlLinkGenerateRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxUrlLinkGenerateReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getUrlLinkGenerate
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxUrlLinkGenerateRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlLinkGenerateRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlLinkGenerateRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkGenerateRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urllink
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 获取小程序 URL Link 响应
* 适用于短信、邮件、网页、微信内等拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放
*
* @author 李贤军
*/
public
class
WxXcxUrlLinkGenerateRes
extends
WxXcxResponseBaseError
{
/**
* 生成的小程序 URL Link
*/
private
String
url_link
;
public
String
getUrl_link
()
{
return
url_link
;
}
public
void
setUrl_link
(
String
url_link
)
{
this
.
url_link
=
url_link
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkQueryReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urllink
;
/**
* 查询小程序 url_link 配置 请求
*
* @author 李贤军
*/
public
class
WxXcxUrlLinkQueryReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 小程序 url_link
*/
private
String
url_link
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
String
getUrl_link
()
{
return
url_link
;
}
public
void
setUrl_link
(
String
url_link
)
{
this
.
url_link
=
url_link
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkQueryRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urllink
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 查询小程序 url_link 配置 转换
*
* @author 李贤军
*/
public
class
WxXcxUrlLinkQueryRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxUrlLinkQueryReq
req
;
public
WxXcxUrlLinkQueryRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxUrlLinkQueryReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getUrlLinkQuery
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxUrlLinkQueryRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlLinkQueryRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlLinkQueryRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkQueryRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urllink
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 查询小程序 url_link 配置 响应
*
* @author 李贤军
*/
public
class
WxXcxUrlLinkQueryRes
extends
WxXcxResponseBaseError
{
/**
* url_link 配置
*/
private
WxXcxUrlLinkQueryUrlLinkInfoRes
url_link_info
;
/**
* 访问该链接的openid,没有用户访问过则为空字符串
*/
private
String
visit_openid
;
public
WxXcxUrlLinkQueryUrlLinkInfoRes
getUrl_link_info
()
{
return
url_link_info
;
}
public
void
setUrl_link_info
(
WxXcxUrlLinkQueryUrlLinkInfoRes
url_link_info
)
{
this
.
url_link_info
=
url_link_info
;
}
public
String
getVisit_openid
()
{
return
visit_openid
;
}
public
void
setVisit_openid
(
String
visit_openid
)
{
this
.
visit_openid
=
visit_openid
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urllink/WxXcxUrlLinkQueryUrlLinkInfoRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urllink
;
/**
* url_link 配置
*
* @author 李贤军
*/
public
class
WxXcxUrlLinkQueryUrlLinkInfoRes
{
/**
* 小程序 appid。
*/
private
String
appid
;
/**
* 小程序页面路径。
*/
private
String
path
;
/**
* 小程序页面query。
*/
private
String
query
;
/**
* 创建时间,为 Unix 时间戳。
*/
private
String
create_time
;
/**
* 到期失效时间,为 Unix 时间戳,0 表示永久生效
*/
private
String
expire_time
;
/**
* 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop"。
*/
private
String
env_version
;
/**
* 云开发配置。
*/
private
WxXcxUrlLinkGenerateCloudBaseReq
cloud_base
;
public
String
getAppid
()
{
return
appid
;
}
public
void
setAppid
(
String
appid
)
{
this
.
appid
=
appid
;
}
public
String
getPath
()
{
return
path
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
String
getQuery
()
{
return
query
;
}
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
}
public
String
getCreate_time
()
{
return
create_time
;
}
public
void
setCreate_time
(
String
create_time
)
{
this
.
create_time
=
create_time
;
}
public
String
getExpire_time
()
{
return
expire_time
;
}
public
void
setExpire_time
(
String
expire_time
)
{
this
.
expire_time
=
expire_time
;
}
public
String
getEnv_version
()
{
return
env_version
;
}
public
void
setEnv_version
(
String
env_version
)
{
this
.
env_version
=
env_version
;
}
public
WxXcxUrlLinkGenerateCloudBaseReq
getCloud_base
()
{
return
cloud_base
;
}
public
void
setCloud_base
(
WxXcxUrlLinkGenerateCloudBaseReq
cloud_base
)
{
this
.
cloud_base
=
cloud_base
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateJumpWxaReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
/**
* 获取小程序 scheme 码,适用于短信、邮件、外部网页、微信内等拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeGenerateJumpWxaReq
{
/**
* 通过 scheme 码进入的小程序页面路径,必须是已经发布的小程序存在的页面,不可携带 query。path 为空时会跳转小程序主页
*/
private
String
path
;
/**
* 通过 scheme 码进入小程序时的 query,最大1024个字符,只支持数字,大小写英文以及部分特殊字符:`!#$&'()*+,/:;=?@-._~%``
*/
private
String
query
;
/**
* 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop",仅在微信外打开时生效
*/
private
String
env_version
;
public
String
getPath
()
{
return
path
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
String
getQuery
()
{
return
query
;
}
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
}
public
String
getEnv_version
()
{
return
env_version
;
}
public
void
setEnv_version
(
String
env_version
)
{
this
.
env_version
=
env_version
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateNfcReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
/**
* 获取用于 NFC 的小程序 scheme 码 请求
* 适用于 NFC 拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放,详见 NFC 标签打开小程序
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeGenerateNfcReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 跳转到的目标小程序信息。
*/
private
WxXcxUrlSchemeGenerateJumpWxaReq
jump_wxa
;
/**
* scheme对应的设备sn,仅一机一码时填写
*/
private
String
sn
;
/**
* scheme对应的设备model_id
*/
private
String
model_id
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
WxXcxUrlSchemeGenerateJumpWxaReq
getJump_wxa
()
{
return
jump_wxa
;
}
public
void
setJump_wxa
(
WxXcxUrlSchemeGenerateJumpWxaReq
jump_wxa
)
{
this
.
jump_wxa
=
jump_wxa
;
}
public
String
getSn
()
{
return
sn
;
}
public
void
setSn
(
String
sn
)
{
this
.
sn
=
sn
;
}
public
String
getModel_id
()
{
return
model_id
;
}
public
void
setModel_id
(
String
model_id
)
{
this
.
model_id
=
model_id
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateNfcRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 获取用于 NFC 的小程序 scheme 码 转换
* 适用于 NFC 拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放,详见 NFC 标签打开小程序
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeGenerateNfcRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxUrlSchemeGenerateNfcReq
req
;
public
WxXcxUrlSchemeGenerateNfcRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxUrlSchemeGenerateNfcReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getUrlSchemeGenerateNFC
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxUrlSchemeGenerateNfcRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlSchemeGenerateNfcRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlSchemeGenerateNfcRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateNfcRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 获取用于 NFC 的小程序 scheme 码 响应
* 适用于 NFC 拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放,详见 NFC 标签打开小程序
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeGenerateNfcRes
extends
WxXcxResponseBaseError
{
/**
* 生成的小程序 scheme 码
*/
private
String
openlink
;
public
String
getOpenlink
()
{
return
openlink
;
}
public
void
setOpenlink
(
String
openlink
)
{
this
.
openlink
=
openlink
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
/**
* 获取小程序 scheme 码 请求
* 适用于短信、邮件、外部网页、微信内等拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeGenerateReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 跳转到的目标小程序信息。
*/
private
WxXcxUrlSchemeGenerateJumpWxaReq
jump_wxa
;
/**
* 到期失效的 scheme 码失效类型,失效时间:0,失效间隔天数:1
*/
private
int
expire_type
;
/**
* 到期失效的 scheme 码的失效时间,为 Unix 时间戳。生成的到期失效 scheme 码在该时间前有效。最长有效期为30天。expire_type 为 0 时必填
*/
private
int
expire_time
;
/**
* 到期失效的 scheme 码的失效间隔天数。生成的到期失效 scheme 码在该间隔时间到达前有效。最长间隔天数为30天。 expire_type 为 1 时必填
*/
private
int
expire_interval
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
WxXcxUrlSchemeGenerateJumpWxaReq
getJump_wxa
()
{
return
jump_wxa
;
}
public
void
setJump_wxa
(
WxXcxUrlSchemeGenerateJumpWxaReq
jump_wxa
)
{
this
.
jump_wxa
=
jump_wxa
;
}
public
int
getExpire_type
()
{
return
expire_type
;
}
public
void
setExpire_type
(
int
expire_type
)
{
this
.
expire_type
=
expire_type
;
}
public
int
getExpire_time
()
{
return
expire_time
;
}
public
void
setExpire_time
(
int
expire_time
)
{
this
.
expire_time
=
expire_time
;
}
public
int
getExpire_interval
()
{
return
expire_interval
;
}
public
void
setExpire_interval
(
int
expire_interval
)
{
this
.
expire_interval
=
expire_interval
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 获取小程序 scheme 码 转换
* 适用于短信、邮件、外部网页、微信内等拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeGenerateRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxUrlSchemeGenerateReq
req
;
public
WxXcxUrlSchemeGenerateRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxUrlSchemeGenerateReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getUrlSchemeGenerate
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxUrlSchemeGenerateRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlSchemeGenerateRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlSchemeGenerateRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeGenerateRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 获取小程序 scheme 码 响应
* 适用于短信、邮件、外部网页、微信内等拉起小程序的业务场景。目前仅针对国内非个人主体的小程序开放
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeGenerateRes
extends
WxXcxResponseBaseError
{
/**
* 生成的小程序 scheme 码
*/
private
String
openlink
;
public
String
getOpenlink
()
{
return
openlink
;
}
public
void
setOpenlink
(
String
openlink
)
{
this
.
openlink
=
openlink
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeQueryReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
/**
* 查询小程序 scheme 码 请求
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeQueryReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 小程序 scheme 码
*/
private
String
scheme
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
String
getScheme
()
{
return
scheme
;
}
public
void
setScheme
(
String
scheme
)
{
this
.
scheme
=
scheme
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeQueryRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 查询小程序 scheme 码 转换
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeQueryRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxUrlSchemeQueryReq
req
;
public
WxXcxUrlSchemeQueryRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxUrlSchemeQueryReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getUrlSchemeQuery
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxUrlSchemeQueryRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlSchemeQueryRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlSchemeQueryRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeQueryRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
/**
* 查询小程序 scheme 码 响应
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeQueryRes
extends
WxXcxResponseBaseError
{
/**
* scheme 配置
*/
private
WxXcxUrlSchemeQuerySchemeInfoRes
scheme_info
;
/**
* 访问该链接的openid,没有用户访问过则为空字符串
*/
private
String
visit_openid
;
public
WxXcxUrlSchemeQuerySchemeInfoRes
getScheme_info
()
{
return
scheme_info
;
}
public
void
setScheme_info
(
WxXcxUrlSchemeQuerySchemeInfoRes
scheme_info
)
{
this
.
scheme_info
=
scheme_info
;
}
public
String
getVisit_openid
()
{
return
visit_openid
;
}
public
void
setVisit_openid
(
String
visit_openid
)
{
this
.
visit_openid
=
visit_openid
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/urlscheme/WxXcxUrlSchemeQuerySchemeInfoRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
urlscheme
;
/**
* scheme_info 的结构
*
* @author 李贤军
*/
public
class
WxXcxUrlSchemeQuerySchemeInfoRes
{
/**
* 小程序 appid。
*/
private
String
appid
;
/**
* 小程序页面路径。
*/
private
String
path
;
/**
* 小程序页面query
*/
private
String
query
;
/**
* 创建时间,为 Unix 时间戳。
*/
private
String
create_time
;
/**
* 到期失效时间,为 Unix 时间戳,0 表示永久生效
*/
private
String
expire_time
;
/**
* 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop"。
*/
private
String
env_version
;
public
String
getAppid
()
{
return
appid
;
}
public
void
setAppid
(
String
appid
)
{
this
.
appid
=
appid
;
}
public
String
getPath
()
{
return
path
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
String
getQuery
()
{
return
query
;
}
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
}
public
String
getCreate_time
()
{
return
create_time
;
}
public
void
setCreate_time
(
String
create_time
)
{
this
.
create_time
=
create_time
;
}
public
String
getExpire_time
()
{
return
expire_time
;
}
public
void
setExpire_time
(
String
expire_time
)
{
this
.
expire_time
=
expire_time
;
}
public
String
getEnv_version
()
{
return
env_version
;
}
public
void
setEnv_version
(
String
env_version
)
{
this
.
env_version
=
env_version
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeCreateQrCodeReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
/**
* 获取小程序二维码 请求
* 适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeCreateQrCodeReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 扫码进入的小程序页面路径,最大长度 128 字节,不能为空;对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar",即可在 wx.getLaunchOptionsSync 接口中的 query 参数获取到 {foo:"bar"}。
*/
private
String
path
;
/**
* 二维码的宽度,单位 px。最小 280px,最大 1280px
*/
private
int
width
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
String
getPath
()
{
return
path
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
int
getWidth
()
{
return
width
;
}
public
void
setWidth
(
int
width
)
{
this
.
width
=
width
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeCreateQrCodeRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 获取小程序二维码 转换
* 适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeCreateQrCodeRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxWxaCodeCreateQrCodeReq
req
;
public
WxXcxWxaCodeCreateQrCodeRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxWxaCodeCreateQrCodeReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getWxaCodeCreateQRCode
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxWxaCodeCreateQrCodeRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxWxaCodeCreateQrCodeRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxWxaCodeCreateQrCodeRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeCreateQrCodeRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
import
java.nio.Buffer
;
/**
* 获取小程序二维码 响应
* 适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeCreateQrCodeRes
extends
WxXcxResponseBaseError
{
/**
* 数据类型 (MIME Type)
*/
private
String
contentType
;
/**
* 数据 Buffer
*/
private
Buffer
buffer
;
public
String
getContentType
()
{
return
contentType
;
}
public
void
setContentType
(
String
contentType
)
{
this
.
contentType
=
contentType
;
}
public
Buffer
getBuffer
()
{
return
buffer
;
}
public
void
setBuffer
(
Buffer
buffer
)
{
this
.
buffer
=
buffer
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetLineColorReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
/**
* auto_color 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} 十进制表示
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeGetLineColorReq
{
/**
* auto_color 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} 十进制表示
*/
private
String
r
;
/**
* auto_color 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} 十进制表示
*/
private
String
g
;
/**
* auto_color 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} 十进制表示
*/
private
String
b
;
public
String
getR
()
{
return
r
;
}
public
void
setR
(
String
r
)
{
this
.
r
=
r
;
}
public
String
getG
()
{
return
g
;
}
public
void
setG
(
String
g
)
{
this
.
g
=
g
;
}
public
String
getB
()
{
return
b
;
}
public
void
setB
(
String
b
)
{
this
.
b
=
b
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
/**
* 获取小程序码 请求
* 适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeGetReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 扫码进入的小程序页面路径,最大长度 128 字节,不能为空;对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar",即可在 wx.getLaunchOptionsSync 接口中的 query 参数获取到 {foo:"bar"}。
*/
private
String
path
;
/**
* 要打开的小程序版本。正式版为 release,体验版为 trial,开发版为 develop
*/
private
String
env_version
;
/**
* 二维码的宽度,单位 px。最小 280px,最大 1280px
*/
private
String
width
;
/**
* 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调
*/
private
String
auto_color
;
/**
* auto_color 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} 十进制表示
*/
private
WxXcxWxaCodeGetLineColorReq
line_color
;
/**
* 是否需要透明底色,为 true 时,生成透明底色的小程序码
*/
private
String
is_hyaline
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
String
getPath
()
{
return
path
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
String
getEnv_version
()
{
return
env_version
;
}
public
void
setEnv_version
(
String
env_version
)
{
this
.
env_version
=
env_version
;
}
public
String
getWidth
()
{
return
width
;
}
public
void
setWidth
(
String
width
)
{
this
.
width
=
width
;
}
public
String
getAuto_color
()
{
return
auto_color
;
}
public
void
setAuto_color
(
String
auto_color
)
{
this
.
auto_color
=
auto_color
;
}
public
WxXcxWxaCodeGetLineColorReq
getLine_color
()
{
return
line_color
;
}
public
void
setLine_color
(
WxXcxWxaCodeGetLineColorReq
line_color
)
{
this
.
line_color
=
line_color
;
}
public
String
getIs_hyaline
()
{
return
is_hyaline
;
}
public
void
setIs_hyaline
(
String
is_hyaline
)
{
this
.
is_hyaline
=
is_hyaline
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 获取小程序码 转换
* 适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeGetRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxWxaCodeGetReq
req
;
public
WxXcxWxaCodeGetRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxWxaCodeGetReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getWxaCodeGet
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxWxaCodeGetRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxWxaCodeGetRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxWxaCodeGetRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
import
java.nio.Buffer
;
/**
* 获取小程序码 响应
* 适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeGetRes
extends
WxXcxResponseBaseError
{
/**
* 数据类型 (MIME Type)
*/
private
String
contentType
;
/**
* 数据 Buffer
*/
private
Buffer
buffer
;
public
String
getContentType
()
{
return
contentType
;
}
public
void
setContentType
(
String
contentType
)
{
this
.
contentType
=
contentType
;
}
public
Buffer
getBuffer
()
{
return
buffer
;
}
public
void
setBuffer
(
Buffer
buffer
)
{
this
.
buffer
=
buffer
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetUnlimitedReq.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
/**
* 获取小程序码 请求
* 适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeGetUnlimitedReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~,其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式
*/
private
String
scene
;
/**
* 页面 page,例如 pages/index/index,根路径前不要填加 /,不能携带参数(参数请放在 scene 字段里),如果不填写这个字段,默认跳主页面
*/
private
String
page
;
/**
* 检查 page 是否存在,为 true 时 page 必须是已经发布的小程序存在的页面(否则报错);为 false 时允许小程序未发布或者 page 不存在, 但 page 有数量上限(60000个)请勿滥用
*/
private
boolean
check_path
;
/**
* 要打开的小程序版本。正式版为 release,体验版为 trial,开发版为 develop
*/
private
String
env_version
;
/**
* 二维码的宽度,单位 px,最小 280px,最大 1280px
*/
private
int
width
;
/**
* 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调,默认 false
*/
private
boolean
auto_color
;
/**
* auto_color 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} 十进制表示
*/
private
WxXcxWxaCodeGetLineColorReq
line_color
;
/**
* 是否需要透明底色,为 true 时,生成透明底色的小程序
*/
private
boolean
is_hyaline
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
String
getScene
()
{
return
scene
;
}
public
void
setScene
(
String
scene
)
{
this
.
scene
=
scene
;
}
public
String
getPage
()
{
return
page
;
}
public
void
setPage
(
String
page
)
{
this
.
page
=
page
;
}
public
boolean
isCheck_path
()
{
return
check_path
;
}
public
void
setCheck_path
(
boolean
check_path
)
{
this
.
check_path
=
check_path
;
}
public
String
getEnv_version
()
{
return
env_version
;
}
public
void
setEnv_version
(
String
env_version
)
{
this
.
env_version
=
env_version
;
}
public
int
getWidth
()
{
return
width
;
}
public
void
setWidth
(
int
width
)
{
this
.
width
=
width
;
}
public
boolean
isAuto_color
()
{
return
auto_color
;
}
public
void
setAuto_color
(
boolean
auto_color
)
{
this
.
auto_color
=
auto_color
;
}
public
WxXcxWxaCodeGetLineColorReq
getLine_color
()
{
return
line_color
;
}
public
void
setLine_color
(
WxXcxWxaCodeGetLineColorReq
line_color
)
{
this
.
line_color
=
line_color
;
}
public
boolean
isIs_hyaline
()
{
return
is_hyaline
;
}
public
void
setIs_hyaline
(
boolean
is_hyaline
)
{
this
.
is_hyaline
=
is_hyaline
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetUnlimitedRequest.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
* 获取小程序码 转换
* 适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeGetUnlimitedRequest
implements
WxXcxRequestUrl
,
WxXcxRequestUrlPara
,
WxXcxRequestPostFormData
{
private
final
WxXcxConfig
wxXcxConfig
;
private
final
WxXcxRequest
wxXcxRequest
;
private
final
WxXcxAccessToken
accessToken
;
private
final
WxXcxWxaCodeGetUnlimitedReq
req
;
public
WxXcxWxaCodeGetUnlimitedRequest
(
WxXcxConfig
wxXcxConfig
,
WxXcxRequest
wxXcxRequest
,
WxXcxAccessToken
accessToken
,
WxXcxWxaCodeGetUnlimitedReq
req
)
{
this
.
wxXcxConfig
=
wxXcxConfig
;
this
.
wxXcxRequest
=
wxXcxRequest
;
this
.
accessToken
=
accessToken
;
this
.
req
=
req
;
}
@Override
public
String
getUrl
()
{
return
wxXcxConfig
.
getBaseUrl
()
+
wxXcxConfig
.
getWxaCodeGetUnlimited
()
+
"?"
+
this
.
getUrlPara
();
}
@Override
public
String
getUrlPara
()
{
return
HttpHelper
.
getUrlParameter
(
accessToken
);
}
@Override
public
String
getPost
()
{
return
HttpHelper
.
getUrlParameter
(
req
);
}
public
WxXcxWxaCodeGetUnlimitedRes
getResponse
()
{
// todo: 检测参数是否合法
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxWxaCodeGetUnlimitedRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxWxaCodeGetUnlimitedRes
>()
{
});
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/wxacode/WxXcxWxaCodeGetUnlimitedRes.java
0 → 100644
View file @
fdb9020f
package
com
.
yanzuoguang
.
wxxcx
.
wxacode
;
import
com.yanzuoguang.wxxcx.base.WxXcxResponseBaseError
;
import
java.nio.Buffer
;
/**
* 获取小程序码 响应
* 适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制
*
* @author 李贤军
*/
public
class
WxXcxWxaCodeGetUnlimitedRes
extends
WxXcxResponseBaseError
{
/**
* 数据类型 (MIME Type)
*/
private
String
contentType
;
/**
* 数据 Buffer
*/
private
Buffer
buffer
;
public
String
getContentType
()
{
return
contentType
;
}
public
void
setContentType
(
String
contentType
)
{
this
.
contentType
=
contentType
;
}
public
Buffer
getBuffer
()
{
return
buffer
;
}
public
void
setBuffer
(
Buffer
buffer
)
{
this
.
buffer
=
buffer
;
}
}
This diff is collapsed.
Click to expand it.
yzg-util-wxxcx/src/test/java/com/yanzuoguang/wxxcx/auth/login/WxXcxAuthCode2SessionTest.java
0 → 100644
View file @
fdb9020f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment