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
39f68292
Commit
39f68292
authored
Jul 08, 2022
by
xianjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加入参验证
parent
9a2a56df
Changes
51
Hide whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
484 additions
and
102 deletions
+484
-102
WxXcxAccessTokenField.java
...ava/com/yanzuoguang/wxxcx/base/WxXcxAccessTokenField.java
+10
-0
WxXcxUrlLinkGenerateRequest.java
...wxxcx/codeorlink/urllink/WxXcxUrlLinkGenerateRequest.java
+6
-2
WxXcxUrlLinkQueryRequest.java
...ng/wxxcx/codeorlink/urllink/WxXcxUrlLinkQueryRequest.java
+6
-2
WxXcxUrlSchemeGenerateNfcRequest.java
...odeorlink/urlscheme/WxXcxUrlSchemeGenerateNfcRequest.java
+6
-2
WxXcxUrlSchemeGenerateRequest.java
...x/codeorlink/urlscheme/WxXcxUrlSchemeGenerateRequest.java
+6
-2
WxXcxUrlSchemeQueryRequest.java
...xxcx/codeorlink/urlscheme/WxXcxUrlSchemeQueryRequest.java
+8
-2
WxXcxWxaCodeCreateQrCodeRequest.java
...x/codeorlink/wxacode/WxXcxWxaCodeCreateQrCodeRequest.java
+8
-2
WxXcxWxaCodeGetRequest.java
...uang/wxxcx/codeorlink/wxacode/WxXcxWxaCodeGetRequest.java
+8
-2
WxXcxWxaCodeGetUnlimitedRequest.java
...x/codeorlink/wxacode/WxXcxWxaCodeGetUnlimitedRequest.java
+8
-2
WxXcxAnalysisGetPerformanceDataRequest.java
...analysis/data/WxXcxAnalysisGetPerformanceDataRequest.java
+10
-2
WxXcxAnalysisGetVisitDistributionRequest.java
...istribution/WxXcxAnalysisGetVisitDistributionRequest.java
+9
-2
WxXcxAnalysisGetVisitPageRequest.java
...x/dataanalysis/page/WxXcxAnalysisGetVisitPageRequest.java
+9
-2
WxXcxAnalysisGetUserPortraitRequest.java
...nalysis/portrait/WxXcxAnalysisGetUserPortraitRequest.java
+9
-2
WxXcxAnalysisGetDailyRetainRequest.java
...taanalysis/retain/WxXcxAnalysisGetDailyRetainRequest.java
+9
-2
WxXcxAnalysisGetMonthlyRetainRequest.java
...analysis/retain/WxXcxAnalysisGetMonthlyRetainRequest.java
+9
-2
WxXcxAnalysisGetWeeklyRetainRequest.java
...aanalysis/retain/WxXcxAnalysisGetWeeklyRetainRequest.java
+9
-2
WxXcxAnalysisGetDailySummaryRequest.java
...analysis/summary/WxXcxAnalysisGetDailySummaryRequest.java
+10
-2
WxXcxAnalysisGetDailyVisitTrendRequest.java
...nalysis/trend/WxXcxAnalysisGetDailyVisitTrendRequest.java
+9
-2
WxXcxAnalysisGetMonthlyVisitTrendRequest.java
...lysis/trend/WxXcxAnalysisGetMonthlyVisitTrendRequest.java
+9
-2
WxXcxAnalysisGetWeeklyVisitTrendReq.java
...taanalysis/trend/WxXcxAnalysisGetWeeklyVisitTrendReq.java
+36
-0
WxXcxAnalysisGetWeeklyVisitTrendRequest.java
...alysis/trend/WxXcxAnalysisGetWeeklyVisitTrendRequest.java
+9
-2
WxXcxAuthCode2SessionRequest.java
...yanzuoguang/wxxcx/login/WxXcxAuthCode2SessionRequest.java
+10
-2
WxXcxUniformMessageSendRequest.java
...manage/uniformmessage/WxXcxUniformMessageSendRequest.java
+11
-2
WxXcxUpdatableMessageCreateActivityIdRequest.java
...message/WxXcxUpdatableMessageCreateActivityIdRequest.java
+7
-2
WxXcxUpdatableMessageSetUpdatableMsgRequest.java
...emessage/WxXcxUpdatableMessageSetUpdatableMsgRequest.java
+7
-2
WxXcxNearbyPoiAddRequest.java
...yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiAddRequest.java
+19
-2
WxXcxNearbyPoiDeleteRequest.java
...zuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiDeleteRequest.java
+8
-2
WxXcxNearbyPoiGetListRequest.java
...uoguang/wxxcx/nearbypoi/WxXcxNearbyPoiGetListRequest.java
+9
-2
WxXcxNearbyPoiSetShowStatusRequest.java
...g/wxxcx/nearbypoi/WxXcxNearbyPoiSetShowStatusRequest.java
+9
-2
WxXcxOpenApiManageClearQuotaRequest.java
...cx/openapimanage/WxXcxOpenApiManageClearQuotaRequest.java
+8
-4
WxXcxOpenApiManageGetApiQuotaRequest.java
...x/openapimanage/WxXcxOpenApiManageGetApiQuotaRequest.java
+8
-2
WxXcxOpenApiManageGetRidInfoRequest.java
...cx/openapimanage/WxXcxOpenApiManageGetRidInfoRequest.java
+8
-2
WxXxcPluginManagerGetPluginDevApplyListRequest.java
...r/all/WxXxcPluginManagerGetPluginDevApplyListRequest.java
+10
-2
WxXcxPluginManagerApplyPluginRequest.java
...inmanager/apply/WxXcxPluginManagerApplyPluginRequest.java
+10
-2
WxXcxPluginManagerGetPluginListRequest.java
...inmanager/get/WxXcxPluginManagerGetPluginListRequest.java
+8
-2
WxXcxPluginManagerSetDevPluginApplyStatusRequest.java
...tus/WxXcxPluginManagerSetDevPluginApplyStatusRequest.java
+10
-2
WxXcxPluginManagerUnbindPluginRequest.java
...manager/unbind/WxXcxPluginManagerUnbindPluginRequest.java
+9
-2
WxXcxRedPacketCoverGetAuthenticationUrlRequest.java
...cover/WxXcxRedPacketCoverGetAuthenticationUrlRequest.java
+9
-2
WxXcxSecurityMediaCheckAsyncRequest.java
...g/wxxcx/security/WxXcxSecurityMediaCheckAsyncRequest.java
+12
-2
WxXcxSecurityMsgSecCheckRequest.java
...guang/wxxcx/security/WxXcxSecurityMsgSecCheckRequest.java
+11
-2
WxXcxCustomerServiceMessageGetTempMediaRequest.java
...media/WxXcxCustomerServiceMessageGetTempMediaRequest.java
+8
-2
WxXcxCustomerServiceMessageSendRequest.java
...customer/send/WxXcxCustomerServiceMessageSendRequest.java
+13
-2
WxXcxCustomerServiceMessageSetTypingRequest.java
...ettyping/WxXcxCustomerServiceMessageSetTypingRequest.java
+9
-2
WxXcxCustomerServiceMessageUploadTempMediaReq.java
...pmedia/WxXcxCustomerServiceMessageUploadTempMediaReq.java
+3
-3
WxXcxCustomerServiceMessageUploadTempMediaRequest.java
...ia/WxXcxCustomerServiceMessageUploadTempMediaRequest.java
+9
-2
WxXcxAuthGetAccessTokenRequest.java
...nzuoguang/wxxcx/token/WxXcxAuthGetAccessTokenRequest.java
+11
-3
WxXcxAuthCheckEncryptedDataRequest.java
...er/checkencrypted/WxXcxAuthCheckEncryptedDataRequest.java
+8
-2
WxXcxGetPhoneNumberRequest.java
...guang/wxxcx/user/getphone/WxXcxGetPhoneNumberRequest.java
+8
-2
WxXcxAuthGetPluginOpenPidRequest.java
...x/user/getpluginpid/WxXcxAuthGetPluginOpenPidRequest.java
+9
-2
WxXcxAuthGetPaidUnionIdRequest.java
...wxxcx/user/getunionid/WxXcxAuthGetPaidUnionIdRequest.java
+9
-2
WxXcxGetUserEncryptKeyRequest.java
...user/getuserencryptkey/WxXcxGetUserEncryptKeyRequest.java
+11
-2
No files found.
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/base/WxXcxAccessTokenField.java
0 → 100644
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
base
;
/**
* access_token字段
*
* @author 李贤军
*/
public
class
WxXcxAccessTokenField
{
public
static
final
String
FIELD_ACCESS_TOKEN
=
"access_token"
;
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/urllink/WxXcxUrlLinkGenerateRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
urllink
;
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
urllink
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxUrlLinkGenerateRequest implements WxXcxRequestUrl, WxXcxReques
...
@@ -41,8 +42,7 @@ public class WxXcxUrlLinkGenerateRequest implements WxXcxRequestUrl, WxXcxReques
}
}
public
WxXcxUrlLinkGenerateRes
getResponse
()
{
public
WxXcxUrlLinkGenerateRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlLinkGenerateRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlLinkGenerateRes
>()
{
WxXcxUrlLinkGenerateRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlLinkGenerateRes
>()
{
});
});
...
@@ -50,4 +50,8 @@ public class WxXcxUrlLinkGenerateRequest implements WxXcxRequestUrl, WxXcxReques
...
@@ -50,4 +50,8 @@ public class WxXcxUrlLinkGenerateRequest implements WxXcxRequestUrl, WxXcxReques
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxUrlLinkGenerateReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
()).
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/urllink/WxXcxUrlLinkQueryRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
urllink
;
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
urllink
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxUrlLinkQueryRequest implements WxXcxRequestUrl, WxXcxRequestUr
...
@@ -40,8 +41,7 @@ public class WxXcxUrlLinkQueryRequest implements WxXcxRequestUrl, WxXcxRequestUr
}
}
public
WxXcxUrlLinkQueryRes
getResponse
()
{
public
WxXcxUrlLinkQueryRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlLinkQueryRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlLinkQueryRes
>()
{
WxXcxUrlLinkQueryRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlLinkQueryRes
>()
{
});
});
...
@@ -49,4 +49,8 @@ public class WxXcxUrlLinkQueryRequest implements WxXcxRequestUrl, WxXcxRequestUr
...
@@ -49,4 +49,8 @@ public class WxXcxUrlLinkQueryRequest implements WxXcxRequestUrl, WxXcxRequestUr
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxUrlLinkQueryReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
()).
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/urlscheme/WxXcxUrlSchemeGenerateNfcRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
urlscheme
;
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
urlscheme
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxUrlSchemeGenerateNfcRequest implements WxXcxRequestUrl, WxXcxR
...
@@ -41,8 +42,7 @@ public class WxXcxUrlSchemeGenerateNfcRequest implements WxXcxRequestUrl, WxXcxR
}
}
public
WxXcxUrlSchemeGenerateNfcRes
getResponse
()
{
public
WxXcxUrlSchemeGenerateNfcRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlSchemeGenerateNfcRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlSchemeGenerateNfcRes
>()
{
WxXcxUrlSchemeGenerateNfcRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlSchemeGenerateNfcRes
>()
{
});
});
...
@@ -50,4 +50,8 @@ public class WxXcxUrlSchemeGenerateNfcRequest implements WxXcxRequestUrl, WxXcxR
...
@@ -50,4 +50,8 @@ public class WxXcxUrlSchemeGenerateNfcRequest implements WxXcxRequestUrl, WxXcxR
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxUrlSchemeGenerateNfcReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
()).
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/urlscheme/WxXcxUrlSchemeGenerateRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.codeorlink.urlscheme;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.codeorlink.urlscheme;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -42,8 +43,7 @@ public class WxXcxUrlSchemeGenerateRequest implements WxXcxRequestUrl, WxXcxRequ
...
@@ -42,8 +43,7 @@ public class WxXcxUrlSchemeGenerateRequest implements WxXcxRequestUrl, WxXcxRequ
}
}
public
WxXcxUrlSchemeGenerateRes
getResponse
()
{
public
WxXcxUrlSchemeGenerateRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlSchemeGenerateRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlSchemeGenerateRes
>()
{
WxXcxUrlSchemeGenerateRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlSchemeGenerateRes
>()
{
});
});
...
@@ -51,4 +51,8 @@ public class WxXcxUrlSchemeGenerateRequest implements WxXcxRequestUrl, WxXcxRequ
...
@@ -51,4 +51,8 @@ public class WxXcxUrlSchemeGenerateRequest implements WxXcxRequestUrl, WxXcxRequ
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxUrlSchemeGenerateReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
()).
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/urlscheme/WxXcxUrlSchemeQueryRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.codeorlink.urlscheme;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.codeorlink.urlscheme;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxUrlSchemeQueryRequest implements WxXcxRequestUrl, WxXcxRequest
...
@@ -41,8 +42,7 @@ public class WxXcxUrlSchemeQueryRequest implements WxXcxRequestUrl, WxXcxRequest
}
}
public
WxXcxUrlSchemeQueryRes
getResponse
()
{
public
WxXcxUrlSchemeQueryRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUrlSchemeQueryRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlSchemeQueryRes
>()
{
WxXcxUrlSchemeQueryRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUrlSchemeQueryRes
>()
{
});
});
...
@@ -50,4 +50,10 @@ public class WxXcxUrlSchemeQueryRequest implements WxXcxRequestUrl, WxXcxRequest
...
@@ -50,4 +50,10 @@ public class WxXcxUrlSchemeQueryRequest implements WxXcxRequestUrl, WxXcxRequest
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxUrlSchemeQueryReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"scheme"
,
req
.
getScheme
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/wxacode/WxXcxWxaCodeCreateQrCodeRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
wxacode
;
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
wxacode
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxWxaCodeCreateQrCodeRequest implements WxXcxRequestUrl, WxXcxRe
...
@@ -41,8 +42,7 @@ public class WxXcxWxaCodeCreateQrCodeRequest implements WxXcxRequestUrl, WxXcxRe
}
}
public
WxXcxWxaCodeCreateQrCodeRes
getResponse
()
{
public
WxXcxWxaCodeCreateQrCodeRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxWxaCodeCreateQrCodeRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxWxaCodeCreateQrCodeRes
>()
{
WxXcxWxaCodeCreateQrCodeRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxWxaCodeCreateQrCodeRes
>()
{
});
});
...
@@ -50,4 +50,10 @@ public class WxXcxWxaCodeCreateQrCodeRequest implements WxXcxRequestUrl, WxXcxRe
...
@@ -50,4 +50,10 @@ public class WxXcxWxaCodeCreateQrCodeRequest implements WxXcxRequestUrl, WxXcxRe
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxWxaCodeCreateQrCodeReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"path"
,
req
.
getPath
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/wxacode/WxXcxWxaCodeGetRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
wxacode
;
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
wxacode
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxWxaCodeGetRequest implements WxXcxRequestUrl, WxXcxRequestUrlP
...
@@ -41,8 +42,7 @@ public class WxXcxWxaCodeGetRequest implements WxXcxRequestUrl, WxXcxRequestUrlP
}
}
public
WxXcxWxaCodeGetRes
getResponse
()
{
public
WxXcxWxaCodeGetRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxWxaCodeGetRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxWxaCodeGetRes
>()
{
WxXcxWxaCodeGetRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxWxaCodeGetRes
>()
{
});
});
...
@@ -50,4 +50,10 @@ public class WxXcxWxaCodeGetRequest implements WxXcxRequestUrl, WxXcxRequestUrlP
...
@@ -50,4 +50,10 @@ public class WxXcxWxaCodeGetRequest implements WxXcxRequestUrl, WxXcxRequestUrlP
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxWxaCodeGetReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"path"
,
req
.
getPath
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/wxacode/WxXcxWxaCodeGetUnlimitedRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
wxacode
;
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
wxacode
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxWxaCodeGetUnlimitedRequest implements WxXcxRequestUrl, WxXcxRe
...
@@ -41,8 +42,7 @@ public class WxXcxWxaCodeGetUnlimitedRequest implements WxXcxRequestUrl, WxXcxRe
}
}
public
WxXcxWxaCodeGetUnlimitedRes
getResponse
()
{
public
WxXcxWxaCodeGetUnlimitedRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxWxaCodeGetUnlimitedRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxWxaCodeGetUnlimitedRes
>()
{
WxXcxWxaCodeGetUnlimitedRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxWxaCodeGetUnlimitedRes
>()
{
});
});
...
@@ -50,4 +50,10 @@ public class WxXcxWxaCodeGetUnlimitedRequest implements WxXcxRequestUrl, WxXcxRe
...
@@ -50,4 +50,10 @@ public class WxXcxWxaCodeGetUnlimitedRequest implements WxXcxRequestUrl, WxXcxRe
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxWxaCodeGetUnlimitedReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"scene"
,
req
.
getScene
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/data/WxXcxAnalysisGetPerformanceDataRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
data
;
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
data
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxAnalysisGetPerformanceDataRequest implements WxXcxRequestUrl,
...
@@ -40,8 +41,7 @@ public class WxXcxAnalysisGetPerformanceDataRequest implements WxXcxRequestUrl,
}
}
public
WxXcxAnalysisGetPerformanceDataRes
getResponse
()
{
public
WxXcxAnalysisGetPerformanceDataRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetPerformanceDataRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetPerformanceDataRes
>()
{
WxXcxAnalysisGetPerformanceDataRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetPerformanceDataRes
>()
{
});
});
...
@@ -49,4 +49,12 @@ public class WxXcxAnalysisGetPerformanceDataRequest implements WxXcxRequestUrl,
...
@@ -49,4 +49,12 @@ public class WxXcxAnalysisGetPerformanceDataRequest implements WxXcxRequestUrl,
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetPerformanceDataReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"module"
,
req
.
getModule
())
.
notNull
(
"time"
,
req
.
getTime
())
.
notNull
(
"params"
,
req
.
getParams
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/distribution/WxXcxAnalysisGetVisitDistributionRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.distribution;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.distribution;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetVisitDistributionRequest implements WxXcxRequestUrl
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetVisitDistributionRequest implements WxXcxRequestUrl
}
}
public
WxXcxAnalysisGetVisitDistributionRes
getResponse
()
{
public
WxXcxAnalysisGetVisitDistributionRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetVisitDistributionRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetVisitDistributionRes
>()
{
WxXcxAnalysisGetVisitDistributionRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetVisitDistributionRes
>()
{
});
});
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetVisitDistributionRequest implements WxXcxRequestUrl
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetVisitDistributionRequest implements WxXcxRequestUrl
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetVisitDistributionReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/page/WxXcxAnalysisGetVisitPageRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.page;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.page;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -42,8 +43,7 @@ public class WxXcxAnalysisGetVisitPageRequest implements WxXcxRequestUrl, WxXcxR
...
@@ -42,8 +43,7 @@ public class WxXcxAnalysisGetVisitPageRequest implements WxXcxRequestUrl, WxXcxR
}
}
public
WxXcxAnalysisGetVisitPageRes
getResponse
()
{
public
WxXcxAnalysisGetVisitPageRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetVisitPageRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetVisitPageRes
>()
{
WxXcxAnalysisGetVisitPageRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetVisitPageRes
>()
{
});
});
...
@@ -51,5 +51,12 @@ public class WxXcxAnalysisGetVisitPageRequest implements WxXcxRequestUrl, WxXcxR
...
@@ -51,5 +51,12 @@ public class WxXcxAnalysisGetVisitPageRequest implements WxXcxRequestUrl, WxXcxR
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetVisitPageReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/portrait/WxXcxAnalysisGetUserPortraitRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
portrait
;
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
portrait
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetUserPortraitRequest implements WxXcxRequestUrl, WxX
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetUserPortraitRequest implements WxXcxRequestUrl, WxX
}
}
public
WxXcxAnalysisGetUserPortraitRes
getResponse
()
{
public
WxXcxAnalysisGetUserPortraitRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetUserPortraitRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetUserPortraitRes
>()
{
WxXcxAnalysisGetUserPortraitRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetUserPortraitRes
>()
{
});
});
...
@@ -50,5 +50,12 @@ public class WxXcxAnalysisGetUserPortraitRequest implements WxXcxRequestUrl, WxX
...
@@ -50,5 +50,12 @@ public class WxXcxAnalysisGetUserPortraitRequest implements WxXcxRequestUrl, WxX
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetUserPortraitReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/retain/WxXcxAnalysisGetDailyRetainRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.retain;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.retain;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetDailyRetainRequest implements WxXcxRequestUrl, WxXc
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetDailyRetainRequest implements WxXcxRequestUrl, WxXc
}
}
public
WxXcxAnalysisGetDailyRetainRes
getResponse
()
{
public
WxXcxAnalysisGetDailyRetainRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetDailyRetainRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetDailyRetainRes
>()
{
WxXcxAnalysisGetDailyRetainRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetDailyRetainRes
>()
{
});
});
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetDailyRetainRequest implements WxXcxRequestUrl, WxXc
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetDailyRetainRequest implements WxXcxRequestUrl, WxXc
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetDailyRetainReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/retain/WxXcxAnalysisGetMonthlyRetainRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
retain
;
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
retain
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxAnalysisGetMonthlyRetainRequest implements WxXcxRequestUrl, Wx
...
@@ -40,8 +41,7 @@ public class WxXcxAnalysisGetMonthlyRetainRequest implements WxXcxRequestUrl, Wx
}
}
public
WxXcxAnalysisGetMonthlyRetainRes
getResponse
()
{
public
WxXcxAnalysisGetMonthlyRetainRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetMonthlyRetainRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetMonthlyRetainRes
>()
{
WxXcxAnalysisGetMonthlyRetainRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetMonthlyRetainRes
>()
{
});
});
...
@@ -49,4 +49,11 @@ public class WxXcxAnalysisGetMonthlyRetainRequest implements WxXcxRequestUrl, Wx
...
@@ -49,4 +49,11 @@ public class WxXcxAnalysisGetMonthlyRetainRequest implements WxXcxRequestUrl, Wx
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetMonthlyRetainReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/retain/WxXcxAnalysisGetWeeklyRetainRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.retain;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.retain;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetWeeklyRetainRequest implements WxXcxRequestUrl, WxX
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetWeeklyRetainRequest implements WxXcxRequestUrl, WxX
}
}
public
WxXcxAnalysisGetWeeklyRetainRes
getResponse
()
{
public
WxXcxAnalysisGetWeeklyRetainRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetWeeklyRetainRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetWeeklyRetainRes
>()
{
WxXcxAnalysisGetWeeklyRetainRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetWeeklyRetainRes
>()
{
});
});
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetWeeklyRetainRequest implements WxXcxRequestUrl, WxX
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetWeeklyRetainRequest implements WxXcxRequestUrl, WxX
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetWeeklyRetainReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/summary/WxXcxAnalysisGetDailySummaryRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
summary
;
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
summary
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.dataanalysis.retain.WxXcxAnalysisGetWeeklyRetainReq
;
/**
/**
* 获取用户访问小程序数据概况 转换
* 获取用户访问小程序数据概况 转换
...
@@ -40,8 +42,7 @@ public class WxXcxAnalysisGetDailySummaryRequest implements WxXcxRequestUrl, WxX
...
@@ -40,8 +42,7 @@ public class WxXcxAnalysisGetDailySummaryRequest implements WxXcxRequestUrl, WxX
}
}
public
WxXcxAnalysisGetDailySummaryRes
getResponse
()
{
public
WxXcxAnalysisGetDailySummaryRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetDailySummaryRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetDailySummaryRes
>()
{
WxXcxAnalysisGetDailySummaryRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetDailySummaryRes
>()
{
});
});
...
@@ -49,4 +50,11 @@ public class WxXcxAnalysisGetDailySummaryRequest implements WxXcxRequestUrl, WxX
...
@@ -49,4 +50,11 @@ public class WxXcxAnalysisGetDailySummaryRequest implements WxXcxRequestUrl, WxX
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetDailySummaryReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/trend/WxXcxAnalysisGetDailyVisitTrendRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.trend;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.trend;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetDailyVisitTrendRequest implements WxXcxRequestUrl,
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetDailyVisitTrendRequest implements WxXcxRequestUrl,
}
}
public
WxXcxAnalysisGetDailyVisitTrendRes
getResponse
()
{
public
WxXcxAnalysisGetDailyVisitTrendRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetDailyVisitTrendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetDailyVisitTrendRes
>()
{
WxXcxAnalysisGetDailyVisitTrendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetDailyVisitTrendRes
>()
{
});
});
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetDailyVisitTrendRequest implements WxXcxRequestUrl,
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetDailyVisitTrendRequest implements WxXcxRequestUrl,
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetDailyVisitTrendReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/trend/WxXcxAnalysisGetMonthlyVisitTrendRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
trend
;
package
com
.
yanzuoguang
.
wxxcx
.
dataanalysis
.
trend
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxAnalysisGetMonthlyVisitTrendRequest implements WxXcxRequestUrl
...
@@ -40,8 +41,7 @@ public class WxXcxAnalysisGetMonthlyVisitTrendRequest implements WxXcxRequestUrl
}
}
public
WxXcxAnalysisGetMonthlyVisitTrendRes
getResponse
()
{
public
WxXcxAnalysisGetMonthlyVisitTrendRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetMonthlyVisitTrendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetMonthlyVisitTrendRes
>()
{
WxXcxAnalysisGetMonthlyVisitTrendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetMonthlyVisitTrendRes
>()
{
});
});
...
@@ -49,4 +49,11 @@ public class WxXcxAnalysisGetMonthlyVisitTrendRequest implements WxXcxRequestUrl
...
@@ -49,4 +49,11 @@ public class WxXcxAnalysisGetMonthlyVisitTrendRequest implements WxXcxRequestUrl
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetMonthlyVisitTrendReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/trend/WxXcxAnalysisGetWeeklyVisitTrendReq.java
View file @
39f68292
...
@@ -6,4 +6,40 @@ package com.yanzuoguang.wxxcx.dataanalysis.trend;
...
@@ -6,4 +6,40 @@ package com.yanzuoguang.wxxcx.dataanalysis.trend;
* @author 李贤军
* @author 李贤军
*/
*/
public
class
WxXcxAnalysisGetWeeklyVisitTrendReq
{
public
class
WxXcxAnalysisGetWeeklyVisitTrendReq
{
/**
* 接口调用凭证
*/
private
String
access_token
;
/**
* 开始日期。格式为 yyyymmdd
*/
private
String
begin_date
;
/**
* 结束日期,限定查询1天数据,允许设置的最大值为昨日。格式为 yyyymmdd
*/
private
String
end_date
;
public
String
getAccess_token
()
{
return
access_token
;
}
public
void
setAccess_token
(
String
access_token
)
{
this
.
access_token
=
access_token
;
}
public
String
getBegin_date
()
{
return
begin_date
;
}
public
void
setBegin_date
(
String
begin_date
)
{
this
.
begin_date
=
begin_date
;
}
public
String
getEnd_date
()
{
return
end_date
;
}
public
void
setEnd_date
(
String
end_date
)
{
this
.
end_date
=
end_date
;
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/dataanalysis/trend/WxXcxAnalysisGetWeeklyVisitTrendRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.trend;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.dataanalysis.trend;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetWeeklyVisitTrendRequest implements WxXcxRequestUrl,
...
@@ -41,8 +42,7 @@ public class WxXcxAnalysisGetWeeklyVisitTrendRequest implements WxXcxRequestUrl,
}
}
public
WxXcxAnalysisGetWeeklyVisitTrendRes
getResponse
()
{
public
WxXcxAnalysisGetWeeklyVisitTrendRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAnalysisGetWeeklyVisitTrendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetWeeklyVisitTrendRes
>()
{
WxXcxAnalysisGetWeeklyVisitTrendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAnalysisGetWeeklyVisitTrendRes
>()
{
});
});
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetWeeklyVisitTrendRequest implements WxXcxRequestUrl,
...
@@ -50,4 +50,11 @@ public class WxXcxAnalysisGetWeeklyVisitTrendRequest implements WxXcxRequestUrl,
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAnalysisGetWeeklyVisitTrendReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"begin_date"
,
req
.
getBegin_date
())
.
notBlankCheck
(
"end_date"
,
req
.
getEnd_date
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/login/WxXcxAuthCode2SessionRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
login
;
package
com
.
yanzuoguang
.
wxxcx
.
login
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -33,8 +34,7 @@ public class WxXcxAuthCode2SessionRequest implements WxXcxRequestUrl, WxXcxReque
...
@@ -33,8 +34,7 @@ public class WxXcxAuthCode2SessionRequest implements WxXcxRequestUrl, WxXcxReque
}
}
public
WxXcxAuthCode2SessionRes
getResponse
()
{
public
WxXcxAuthCode2SessionRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAuthCode2SessionRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthCode2SessionRes
>()
{
WxXcxAuthCode2SessionRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthCode2SessionRes
>()
{
});
});
...
@@ -42,4 +42,12 @@ public class WxXcxAuthCode2SessionRequest implements WxXcxRequestUrl, WxXcxReque
...
@@ -42,4 +42,12 @@ public class WxXcxAuthCode2SessionRequest implements WxXcxRequestUrl, WxXcxReque
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAuthCode2SessionReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
"appid"
,
req
.
getAppid
())
.
notBlankCheck
(
"secret"
,
req
.
getSecret
())
.
notBlankCheck
(
"js_code"
,
req
.
getJs_code
())
.
notBlankCheck
(
"grant_type"
,
req
.
getGrant_type
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/messagemanage/uniformmessage/WxXcxUniformMessageSendRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
messagemanage
.
uniformmessage
;
package
com
.
yanzuoguang
.
wxxcx
.
messagemanage
.
uniformmessage
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.login.WxXcxAuthCode2SessionReq
;
/**
/**
* 下发小程序和公众号统一的服务消息 转换
* 下发小程序和公众号统一的服务消息 转换
...
@@ -40,8 +42,7 @@ public class WxXcxUniformMessageSendRequest implements WxXcxRequestUrl, WxXcxReq
...
@@ -40,8 +42,7 @@ public class WxXcxUniformMessageSendRequest implements WxXcxRequestUrl, WxXcxReq
}
}
public
WxXcxUniformMessageSendRes
getResponse
()
{
public
WxXcxUniformMessageSendRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUniformMessageSendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUniformMessageSendRes
>()
{
WxXcxUniformMessageSendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUniformMessageSendRes
>()
{
});
});
...
@@ -49,4 +50,12 @@ public class WxXcxUniformMessageSendRequest implements WxXcxRequestUrl, WxXcxReq
...
@@ -49,4 +50,12 @@ public class WxXcxUniformMessageSendRequest implements WxXcxRequestUrl, WxXcxReq
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxUniformMessageSendReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"touser"
,
req
.
getTouser
())
.
notNull
(
"weapp_template_msg"
,
req
.
getWeapp_template_msg
())
.
notBlankCheck
(
"mp_template_msg"
,
req
.
getMp_template_msg
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/messagemanage/updatablemessage/WxXcxUpdatableMessageCreateActivityIdRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
messagemanage
.
updatablemessage
;
package
com
.
yanzuoguang
.
wxxcx
.
messagemanage
.
updatablemessage
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -35,8 +36,7 @@ public class WxXcxUpdatableMessageCreateActivityIdRequest implements WxXcxReques
...
@@ -35,8 +36,7 @@ public class WxXcxUpdatableMessageCreateActivityIdRequest implements WxXcxReques
}
}
public
WxXcxUpdatableMessageCreateActivityIdRes
getResponse
()
{
public
WxXcxUpdatableMessageCreateActivityIdRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUpdatableMessageCreateActivityIdRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUpdatableMessageCreateActivityIdRes
>()
{
WxXcxUpdatableMessageCreateActivityIdRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUpdatableMessageCreateActivityIdRes
>()
{
});
});
...
@@ -44,4 +44,9 @@ public class WxXcxUpdatableMessageCreateActivityIdRequest implements WxXcxReques
...
@@ -44,4 +44,9 @@ public class WxXcxUpdatableMessageCreateActivityIdRequest implements WxXcxReques
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxUpdatableMessageCreateActivityIdReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/messagemanage/updatablemessage/WxXcxUpdatableMessageSetUpdatableMsgRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.messagemanage.updatablemessage;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.messagemanage.updatablemessage;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxUpdatableMessageSetUpdatableMsgRequest implements WxXcxRequest
...
@@ -41,8 +42,7 @@ public class WxXcxUpdatableMessageSetUpdatableMsgRequest implements WxXcxRequest
}
}
public
WxXcxUpdatableMessageSetUpdatableMsgRes
getResponse
()
{
public
WxXcxUpdatableMessageSetUpdatableMsgRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxUpdatableMessageSetUpdatableMsgRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUpdatableMessageSetUpdatableMsgRes
>()
{
WxXcxUpdatableMessageSetUpdatableMsgRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxUpdatableMessageSetUpdatableMsgRes
>()
{
});
});
...
@@ -50,4 +50,9 @@ public class WxXcxUpdatableMessageSetUpdatableMsgRequest implements WxXcxRequest
...
@@ -50,4 +50,9 @@ public class WxXcxUpdatableMessageSetUpdatableMsgRequest implements WxXcxRequest
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxUpdatableMessageSetUpdatableMsgReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiAddRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
nearbypoi
;
package
com
.
yanzuoguang
.
wxxcx
.
nearbypoi
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxNearbyPoiAddRequest implements WxXcxRequestUrl, WxXcxRequestUr
...
@@ -40,8 +41,7 @@ public class WxXcxNearbyPoiAddRequest implements WxXcxRequestUrl, WxXcxRequestUr
}
}
public
WxXcxNearbyPoiAddRes
getResponse
()
{
public
WxXcxNearbyPoiAddRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxNearbyPoiAddRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxNearbyPoiAddRes
>()
{
WxXcxNearbyPoiAddRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxNearbyPoiAddRes
>()
{
});
});
...
@@ -49,4 +49,21 @@ public class WxXcxNearbyPoiAddRequest implements WxXcxRequestUrl, WxXcxRequestUr
...
@@ -49,4 +49,21 @@ public class WxXcxNearbyPoiAddRequest implements WxXcxRequestUrl, WxXcxRequestUr
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxNearbyPoiAddReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"kf_info"
,
req
.
getKf_info
())
.
notBlankCheck
(
"pic_list"
,
req
.
getPic_list
())
.
notBlankCheck
(
"service_infos"
,
req
.
getService_infos
())
.
notBlankCheck
(
"store_name"
,
req
.
getStore_name
())
.
notBlankCheck
(
"contract_phone"
,
req
.
getContract_phone
())
.
notBlankCheck
(
"company_name"
,
req
.
getCompany_name
())
.
notBlankCheck
(
"credential"
,
req
.
getCredential
())
.
notBlankCheck
(
"address"
,
req
.
getAddress
())
.
notBlankCheck
(
"qualification_list"
,
req
.
getQualification_list
())
.
notBlankCheck
(
"is_comm_nearby"
,
req
.
getIs_comm_nearby
())
.
notBlankCheck
(
"poi_id"
,
req
.
getPoi_id
())
.
notBlankCheck
(
"map_poi_id"
,
req
.
getMap_poi_id
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiDeleteRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.nearbypoi;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.nearbypoi;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxNearbyPoiDeleteRequest implements WxXcxRequestUrl, WxXcxReques
...
@@ -41,8 +42,7 @@ public class WxXcxNearbyPoiDeleteRequest implements WxXcxRequestUrl, WxXcxReques
}
}
public
WxXcxNearbyPoiDeleteRes
getResponse
()
{
public
WxXcxNearbyPoiDeleteRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxNearbyPoiDeleteRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxNearbyPoiDeleteRes
>()
{
WxXcxNearbyPoiDeleteRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxNearbyPoiDeleteRes
>()
{
});
});
...
@@ -50,4 +50,10 @@ public class WxXcxNearbyPoiDeleteRequest implements WxXcxRequestUrl, WxXcxReques
...
@@ -50,4 +50,10 @@ public class WxXcxNearbyPoiDeleteRequest implements WxXcxRequestUrl, WxXcxReques
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxNearbyPoiDeleteReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"poi_id"
,
req
.
getPoi_id
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiGetListRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
nearbypoi
;
package
com
.
yanzuoguang
.
wxxcx
.
nearbypoi
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxNearbyPoiGetListRequest implements WxXcxRequestUrl, WxXcxReque
...
@@ -40,8 +41,7 @@ public class WxXcxNearbyPoiGetListRequest implements WxXcxRequestUrl, WxXcxReque
}
}
public
WxXcxNearbyPoiGetListRes
getResponse
()
{
public
WxXcxNearbyPoiGetListRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxNearbyPoiGetListRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxNearbyPoiGetListRes
>()
{
WxXcxNearbyPoiGetListRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxNearbyPoiGetListRes
>()
{
});
});
...
@@ -49,4 +49,11 @@ public class WxXcxNearbyPoiGetListRequest implements WxXcxRequestUrl, WxXcxReque
...
@@ -49,4 +49,11 @@ public class WxXcxNearbyPoiGetListRequest implements WxXcxRequestUrl, WxXcxReque
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxNearbyPoiGetListReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"page"
,
req
.
getPage
())
.
notBlankCheck
(
"page_rows"
,
req
.
getPage_rows
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/nearbypoi/WxXcxNearbyPoiSetShowStatusRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
nearbypoi
;
package
com
.
yanzuoguang
.
wxxcx
.
nearbypoi
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxNearbyPoiSetShowStatusRequest implements WxXcxRequestUrl, WxXc
...
@@ -40,8 +41,7 @@ public class WxXcxNearbyPoiSetShowStatusRequest implements WxXcxRequestUrl, WxXc
}
}
public
WxXcxNearbyPoiSetShowStatusRes
getResponse
()
{
public
WxXcxNearbyPoiSetShowStatusRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxNearbyPoiSetShowStatusRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxNearbyPoiSetShowStatusRes
>()
{
WxXcxNearbyPoiSetShowStatusRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxNearbyPoiSetShowStatusRes
>()
{
});
});
...
@@ -49,4 +49,11 @@ public class WxXcxNearbyPoiSetShowStatusRequest implements WxXcxRequestUrl, WxXc
...
@@ -49,4 +49,11 @@ public class WxXcxNearbyPoiSetShowStatusRequest implements WxXcxRequestUrl, WxXc
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxNearbyPoiSetShowStatusReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"poi_id"
,
req
.
getPoi_id
())
.
notBlankCheck
(
"status"
,
req
.
getStatus
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/openapimanage/WxXcxOpenApiManageClearQuotaRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
openapimanage
;
package
com
.
yanzuoguang
.
wxxcx
.
openapimanage
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiAddReq
;
import
com.yanzuoguang.wxxcx.nearbypoi.WxXcxNearbyPoiAddRes
;
/**
/**
* 重置 API 调用次数 转换
* 重置 API 调用次数 转换
...
@@ -42,8 +41,7 @@ public class WxXcxOpenApiManageClearQuotaRequest implements WxXcxRequestUrl, WxX
...
@@ -42,8 +41,7 @@ public class WxXcxOpenApiManageClearQuotaRequest implements WxXcxRequestUrl, WxX
}
}
public
WxXcxOpenApiManageClearQuotaRes
getResponse
()
{
public
WxXcxOpenApiManageClearQuotaRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxOpenApiManageClearQuotaRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxOpenApiManageClearQuotaRes
>()
{
WxXcxOpenApiManageClearQuotaRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxOpenApiManageClearQuotaRes
>()
{
});
});
...
@@ -51,4 +49,10 @@ public class WxXcxOpenApiManageClearQuotaRequest implements WxXcxRequestUrl, WxX
...
@@ -51,4 +49,10 @@ public class WxXcxOpenApiManageClearQuotaRequest implements WxXcxRequestUrl, WxX
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxOpenApiManageClearQuotaReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"appid"
,
req
.
getAppid
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/openapimanage/WxXcxOpenApiManageGetApiQuotaRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.openapimanage;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.openapimanage;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxOpenApiManageGetApiQuotaRequest implements WxXcxRequestUrl, Wx
...
@@ -41,8 +42,7 @@ public class WxXcxOpenApiManageGetApiQuotaRequest implements WxXcxRequestUrl, Wx
}
}
public
WxXcxOpenApiManageGetApiQuotaRes
getResponse
()
{
public
WxXcxOpenApiManageGetApiQuotaRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxOpenApiManageGetApiQuotaRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxOpenApiManageGetApiQuotaRes
>()
{
WxXcxOpenApiManageGetApiQuotaRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxOpenApiManageGetApiQuotaRes
>()
{
});
});
...
@@ -50,4 +50,10 @@ public class WxXcxOpenApiManageGetApiQuotaRequest implements WxXcxRequestUrl, Wx
...
@@ -50,4 +50,10 @@ public class WxXcxOpenApiManageGetApiQuotaRequest implements WxXcxRequestUrl, Wx
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxOpenApiManageGetApiQuotaReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"cgi_path"
,
req
.
getCgi_path
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/openapimanage/WxXcxOpenApiManageGetRidInfoRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
openapimanage
;
package
com
.
yanzuoguang
.
wxxcx
.
openapimanage
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxOpenApiManageGetRidInfoRequest implements WxXcxRequestUrl, WxX
...
@@ -40,8 +41,7 @@ public class WxXcxOpenApiManageGetRidInfoRequest implements WxXcxRequestUrl, WxX
}
}
public
WxXcxOpenApiManageGetRidInfoRes
getResponse
()
{
public
WxXcxOpenApiManageGetRidInfoRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxOpenApiManageGetRidInfoRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxOpenApiManageGetRidInfoRes
>()
{
WxXcxOpenApiManageGetRidInfoRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxOpenApiManageGetRidInfoRes
>()
{
});
});
...
@@ -49,4 +49,10 @@ public class WxXcxOpenApiManageGetRidInfoRequest implements WxXcxRequestUrl, WxX
...
@@ -49,4 +49,10 @@ public class WxXcxOpenApiManageGetRidInfoRequest implements WxXcxRequestUrl, WxX
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxOpenApiManageGetRidInfoReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"rid"
,
req
.
getRid
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/all/WxXxcPluginManagerGetPluginDevApplyListRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
pluginmanager
.
all
;
package
com
.
yanzuoguang
.
wxxcx
.
pluginmanager
.
all
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXxcPluginManagerGetPluginDevApplyListRequest implements WxXcxRequ
...
@@ -40,8 +41,7 @@ public class WxXxcPluginManagerGetPluginDevApplyListRequest implements WxXcxRequ
}
}
public
WxXxcPluginManagerGetPluginDevApplyListRes
getResponse
()
{
public
WxXxcPluginManagerGetPluginDevApplyListRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXxcPluginManagerGetPluginDevApplyListRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXxcPluginManagerGetPluginDevApplyListRes
>()
{
WxXxcPluginManagerGetPluginDevApplyListRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXxcPluginManagerGetPluginDevApplyListRes
>()
{
});
});
...
@@ -49,4 +49,12 @@ public class WxXxcPluginManagerGetPluginDevApplyListRequest implements WxXcxRequ
...
@@ -49,4 +49,12 @@ public class WxXxcPluginManagerGetPluginDevApplyListRequest implements WxXcxRequ
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXxcPluginManagerGetPluginDevApplyListReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"action"
,
req
.
getAction
())
.
notBlankCheck
(
"page"
,
req
.
getPage
())
.
notBlankCheck
(
"num"
,
req
.
getNum
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/apply/WxXcxPluginManagerApplyPluginRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
pluginmanager
.
apply
;
package
com
.
yanzuoguang
.
wxxcx
.
pluginmanager
.
apply
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxPluginManagerApplyPluginRequest implements WxXcxRequestUrl, Wx
...
@@ -40,8 +41,7 @@ public class WxXcxPluginManagerApplyPluginRequest implements WxXcxRequestUrl, Wx
}
}
public
WxXcxPluginManagerApplyPluginRes
getResponse
()
{
public
WxXcxPluginManagerApplyPluginRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxPluginManagerApplyPluginRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxPluginManagerApplyPluginRes
>()
{
WxXcxPluginManagerApplyPluginRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxPluginManagerApplyPluginRes
>()
{
});
});
...
@@ -49,4 +49,12 @@ public class WxXcxPluginManagerApplyPluginRequest implements WxXcxRequestUrl, Wx
...
@@ -49,4 +49,12 @@ public class WxXcxPluginManagerApplyPluginRequest implements WxXcxRequestUrl, Wx
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxPluginManagerApplyPluginReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"action"
,
req
.
getAction
())
.
notBlankCheck
(
"plugin_appid"
,
req
.
getPlugin_appid
())
.
notBlankCheck
(
"reason"
,
req
.
getReason
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/get/WxXcxPluginManagerGetPluginListRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
pluginmanager
.
get
;
package
com
.
yanzuoguang
.
wxxcx
.
pluginmanager
.
get
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxPluginManagerGetPluginListRequest implements WxXcxRequestUrl,
...
@@ -41,8 +42,7 @@ public class WxXcxPluginManagerGetPluginListRequest implements WxXcxRequestUrl,
}
}
public
WxXcxPluginManagerGetPluginListRes
getResponse
()
{
public
WxXcxPluginManagerGetPluginListRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxPluginManagerGetPluginListRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxPluginManagerGetPluginListRes
>()
{
WxXcxPluginManagerGetPluginListRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxPluginManagerGetPluginListRes
>()
{
});
});
...
@@ -50,4 +50,10 @@ public class WxXcxPluginManagerGetPluginListRequest implements WxXcxRequestUrl,
...
@@ -50,4 +50,10 @@ public class WxXcxPluginManagerGetPluginListRequest implements WxXcxRequestUrl,
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxPluginManagerGetPluginListReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"action"
,
req
.
getAction
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/status/WxXcxPluginManagerSetDevPluginApplyStatusRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.pluginmanager.status;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.pluginmanager.status;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxPluginManagerSetDevPluginApplyStatusRequest implements WxXcxRe
...
@@ -41,8 +42,7 @@ public class WxXcxPluginManagerSetDevPluginApplyStatusRequest implements WxXcxRe
}
}
public
WxXcxPluginManagerSetDevPluginApplyStatusRes
getResponse
()
{
public
WxXcxPluginManagerSetDevPluginApplyStatusRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxPluginManagerSetDevPluginApplyStatusRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxPluginManagerSetDevPluginApplyStatusRes
>()
{
WxXcxPluginManagerSetDevPluginApplyStatusRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxPluginManagerSetDevPluginApplyStatusRes
>()
{
});
});
...
@@ -50,4 +50,12 @@ public class WxXcxPluginManagerSetDevPluginApplyStatusRequest implements WxXcxRe
...
@@ -50,4 +50,12 @@ public class WxXcxPluginManagerSetDevPluginApplyStatusRequest implements WxXcxRe
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxPluginManagerSetDevPluginApplyStatusReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"action"
,
req
.
getAction
())
.
notBlankCheck
(
"appid"
,
req
.
getAppid
())
.
notBlankCheck
(
"reason"
,
req
.
getReason
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/pluginmanager/unbind/WxXcxPluginManagerUnbindPluginRequest.java
View file @
39f68292
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.pluginmanager.unbind;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.wxxcx.pluginmanager.unbind;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxPluginManagerUnbindPluginRequest implements WxXcxRequestUrl, W
...
@@ -41,8 +42,7 @@ public class WxXcxPluginManagerUnbindPluginRequest implements WxXcxRequestUrl, W
}
}
public
WxXcxPluginManagerUnbindPluginRes
getResponse
()
{
public
WxXcxPluginManagerUnbindPluginRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxPluginManagerUnbindPluginRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxPluginManagerUnbindPluginRes
>()
{
WxXcxPluginManagerUnbindPluginRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxPluginManagerUnbindPluginRes
>()
{
});
});
...
@@ -50,4 +50,11 @@ public class WxXcxPluginManagerUnbindPluginRequest implements WxXcxRequestUrl, W
...
@@ -50,4 +50,11 @@ public class WxXcxPluginManagerUnbindPluginRequest implements WxXcxRequestUrl, W
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxPluginManagerUnbindPluginReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"action"
,
req
.
getAction
())
.
notBlankCheck
(
"plugin_appid"
,
req
.
getPlugin_appid
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/redpacketcover/WxXcxRedPacketCoverGetAuthenticationUrlRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
redpacketcover
;
package
com
.
yanzuoguang
.
wxxcx
.
redpacketcover
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -41,8 +42,7 @@ public class WxXcxRedPacketCoverGetAuthenticationUrlRequest implements WxXcxRequ
...
@@ -41,8 +42,7 @@ public class WxXcxRedPacketCoverGetAuthenticationUrlRequest implements WxXcxRequ
}
}
public
WxXcxRedPacketCoverGetAuthenticationUrlRes
getResponse
()
{
public
WxXcxRedPacketCoverGetAuthenticationUrlRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxRedPacketCoverGetAuthenticationUrlRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxRedPacketCoverGetAuthenticationUrlRes
>()
{
WxXcxRedPacketCoverGetAuthenticationUrlRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxRedPacketCoverGetAuthenticationUrlRes
>()
{
});
});
...
@@ -50,4 +50,11 @@ public class WxXcxRedPacketCoverGetAuthenticationUrlRequest implements WxXcxRequ
...
@@ -50,4 +50,11 @@ public class WxXcxRedPacketCoverGetAuthenticationUrlRequest implements WxXcxRequ
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxRedPacketCoverGetAuthenticationUrlReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"openid"
,
req
.
getOpenid
())
.
notBlankCheck
(
"ctoken"
,
req
.
getCtoken
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMediaCheckAsyncRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
security
;
package
com
.
yanzuoguang
.
wxxcx
.
security
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -46,8 +47,7 @@ public class WxXcxSecurityMediaCheckAsyncRequest implements WxXcxRequestUrl, WxX
...
@@ -46,8 +47,7 @@ public class WxXcxSecurityMediaCheckAsyncRequest implements WxXcxRequestUrl, WxX
}
}
public
WxXcxSecurityMediaCheckAsyncRes
getResponse
()
{
public
WxXcxSecurityMediaCheckAsyncRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxSecurityMediaCheckAsyncRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxSecurityMediaCheckAsyncRes
>()
{
WxXcxSecurityMediaCheckAsyncRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxSecurityMediaCheckAsyncRes
>()
{
});
});
...
@@ -55,4 +55,14 @@ public class WxXcxSecurityMediaCheckAsyncRequest implements WxXcxRequestUrl, WxX
...
@@ -55,4 +55,14 @@ public class WxXcxSecurityMediaCheckAsyncRequest implements WxXcxRequestUrl, WxX
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxSecurityMediaCheckAsyncReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"media_url"
,
req
.
getMedia_url
())
.
notBlankCheck
(
"media_type"
,
req
.
getMedia_type
())
.
notBlankCheck
(
"version"
,
req
.
getVersion
())
.
notBlankCheck
(
"openid"
,
req
.
getOpenid
())
.
notBlankCheck
(
"scene"
,
req
.
getScene
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/security/WxXcxSecurityMsgSecCheckRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
security
;
package
com
.
yanzuoguang
.
wxxcx
.
security
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -47,8 +48,7 @@ public class WxXcxSecurityMsgSecCheckRequest implements WxXcxRequestUrl, WxXcxRe
...
@@ -47,8 +48,7 @@ public class WxXcxSecurityMsgSecCheckRequest implements WxXcxRequestUrl, WxXcxRe
}
}
public
WxXcxSecurityMsgSecCheckRes
getResponse
()
{
public
WxXcxSecurityMsgSecCheckRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxSecurityMsgSecCheckRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxSecurityMsgSecCheckRes
>()
{
WxXcxSecurityMsgSecCheckRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxSecurityMsgSecCheckRes
>()
{
});
});
...
@@ -56,4 +56,13 @@ public class WxXcxSecurityMsgSecCheckRequest implements WxXcxRequestUrl, WxXcxRe
...
@@ -56,4 +56,13 @@ public class WxXcxSecurityMsgSecCheckRequest implements WxXcxRequestUrl, WxXcxRe
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxSecurityMsgSecCheckReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"content"
,
req
.
getContent
())
.
notBlankCheck
(
"version"
,
req
.
getVersion
())
.
notBlankCheck
(
"openid"
,
req
.
getOpenid
())
.
notBlankCheck
(
"scene"
,
req
.
getScene
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/servicecustomer/gettempmedia/WxXcxCustomerServiceMessageGetTempMediaRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
servicecustomer
.
gettempmedia
;
package
com
.
yanzuoguang
.
wxxcx
.
servicecustomer
.
gettempmedia
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -36,8 +37,7 @@ public class WxXcxCustomerServiceMessageGetTempMediaRequest implements WxXcxRequ
...
@@ -36,8 +37,7 @@ public class WxXcxCustomerServiceMessageGetTempMediaRequest implements WxXcxRequ
}
}
public
WxXcxCustomerServiceMessageGetTempMediaRes
getResponse
()
{
public
WxXcxCustomerServiceMessageGetTempMediaRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxCustomerServiceMessageGetTempMediaRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxCustomerServiceMessageGetTempMediaRes
>()
{
WxXcxCustomerServiceMessageGetTempMediaRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxCustomerServiceMessageGetTempMediaRes
>()
{
});
});
...
@@ -45,4 +45,10 @@ public class WxXcxCustomerServiceMessageGetTempMediaRequest implements WxXcxRequ
...
@@ -45,4 +45,10 @@ public class WxXcxCustomerServiceMessageGetTempMediaRequest implements WxXcxRequ
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxCustomerServiceMessageGetTempMediaReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"media_id"
,
req
.
getMedia_id
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/servicecustomer/send/WxXcxCustomerServiceMessageSendRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
servicecustomer
.
send
;
package
com
.
yanzuoguang
.
wxxcx
.
servicecustomer
.
send
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxCustomerServiceMessageSendRequest implements WxXcxRequestUrl,
...
@@ -40,8 +41,7 @@ public class WxXcxCustomerServiceMessageSendRequest implements WxXcxRequestUrl,
}
}
public
WxXcxCustomerServiceMessageSendRes
getResponse
()
{
public
WxXcxCustomerServiceMessageSendRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxCustomerServiceMessageSendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxCustomerServiceMessageSendRes
>()
{
WxXcxCustomerServiceMessageSendRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxCustomerServiceMessageSendRes
>()
{
});
});
...
@@ -49,4 +49,15 @@ public class WxXcxCustomerServiceMessageSendRequest implements WxXcxRequestUrl,
...
@@ -49,4 +49,15 @@ public class WxXcxCustomerServiceMessageSendRequest implements WxXcxRequestUrl,
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxCustomerServiceMessageSendReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"touser"
,
req
.
getTouser
())
.
notBlankCheck
(
"msgtype"
,
req
.
getMsgtype
())
.
notNull
(
"text"
,
req
.
getText
())
.
notNull
(
"image"
,
req
.
getImage
())
.
notNull
(
"link"
,
req
.
getLink
())
.
notNull
(
"miniprogrampage"
,
req
.
getMiniprogrampage
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/servicecustomer/settyping/WxXcxCustomerServiceMessageSetTypingRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
servicecustomer
.
settyping
;
package
com
.
yanzuoguang
.
wxxcx
.
servicecustomer
.
settyping
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxCustomerServiceMessageSetTypingRequest implements WxXcxRequest
...
@@ -40,8 +41,7 @@ public class WxXcxCustomerServiceMessageSetTypingRequest implements WxXcxRequest
}
}
public
WxXcxCustomerServiceMessageSetTypingRes
getResponse
()
{
public
WxXcxCustomerServiceMessageSetTypingRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxCustomerServiceMessageSetTypingRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxCustomerServiceMessageSetTypingRes
>()
{
WxXcxCustomerServiceMessageSetTypingRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxCustomerServiceMessageSetTypingRes
>()
{
});
});
...
@@ -49,4 +49,11 @@ public class WxXcxCustomerServiceMessageSetTypingRequest implements WxXcxRequest
...
@@ -49,4 +49,11 @@ public class WxXcxCustomerServiceMessageSetTypingRequest implements WxXcxRequest
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxCustomerServiceMessageSetTypingReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"touser"
,
req
.
getTouser
())
.
notBlankCheck
(
"command"
,
req
.
getCommand
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/servicecustomer/uploadtempmedia/WxXcxCustomerServiceMessageUploadTempMediaReq.java
View file @
39f68292
...
@@ -23,7 +23,7 @@ public class WxXcxCustomerServiceMessageUploadTempMediaReq {
...
@@ -23,7 +23,7 @@ public class WxXcxCustomerServiceMessageUploadTempMediaReq {
/**
/**
* form-data 中媒体文件标识,有filename、filelength、content-type等信息
* form-data 中媒体文件标识,有filename、filelength、content-type等信息
*/
*/
private
String
media
;
private
Object
media
;
public
String
getAccess_token
()
{
public
String
getAccess_token
()
{
return
access_token
;
return
access_token
;
...
@@ -49,11 +49,11 @@ public class WxXcxCustomerServiceMessageUploadTempMediaReq {
...
@@ -49,11 +49,11 @@ public class WxXcxCustomerServiceMessageUploadTempMediaReq {
this
.
type
=
type
;
this
.
type
=
type
;
}
}
public
String
getMedia
()
{
public
Object
getMedia
()
{
return
media
;
return
media
;
}
}
public
void
setMedia
(
String
media
)
{
public
void
setMedia
(
Object
media
)
{
this
.
media
=
media
;
this
.
media
=
media
;
}
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/servicecustomer/uploadtempmedia/WxXcxCustomerServiceMessageUploadTempMediaRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
servicecustomer
.
uploadtempmedia
;
package
com
.
yanzuoguang
.
wxxcx
.
servicecustomer
.
uploadtempmedia
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxCustomerServiceMessageUploadTempMediaRequest implements WxXcxR
...
@@ -40,8 +41,7 @@ public class WxXcxCustomerServiceMessageUploadTempMediaRequest implements WxXcxR
}
}
public
WxXcxCustomerServiceMessageUploadTempMediaRes
getResponse
()
{
public
WxXcxCustomerServiceMessageUploadTempMediaRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxCustomerServiceMessageUploadTempMediaRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxCustomerServiceMessageUploadTempMediaRes
>()
{
WxXcxCustomerServiceMessageUploadTempMediaRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxCustomerServiceMessageUploadTempMediaRes
>()
{
});
});
...
@@ -49,4 +49,11 @@ public class WxXcxCustomerServiceMessageUploadTempMediaRequest implements WxXcxR
...
@@ -49,4 +49,11 @@ public class WxXcxCustomerServiceMessageUploadTempMediaRequest implements WxXcxR
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxCustomerServiceMessageUploadTempMediaReq
req
)
{
CheckerHelper
.
newInstance
().
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"type"
,
req
.
getType
())
.
notBlankCheck
(
"media"
,
req
.
getMedia
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/token/WxXcxAuthGetAccessTokenRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
token
;
package
com
.
yanzuoguang
.
wxxcx
.
token
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -24,7 +25,7 @@ public class WxXcxAuthGetAccessTokenRequest implements WxXcxRequestUrl, WxXcxReq
...
@@ -24,7 +25,7 @@ public class WxXcxAuthGetAccessTokenRequest implements WxXcxRequestUrl, WxXcxReq
@Override
@Override
public
String
getUrl
()
{
public
String
getUrl
()
{
return
"https://api.weixin.qq.com/cgi-bin/token"
+
"?"
+
this
.
getUrlPara
();
return
"https://api.weixin.qq.com/cgi-bin/token"
+
"?"
+
this
.
getUrlPara
();
// return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAuthGetAccessTokenUrl() + "?" + this.getUrlPara();
// return wxXcxConfig.getBaseUrl() + wxXcxConfig.getAuthGetAccessTokenUrl() + "?" + this.getUrlPara();
}
}
...
@@ -34,8 +35,7 @@ public class WxXcxAuthGetAccessTokenRequest implements WxXcxRequestUrl, WxXcxReq
...
@@ -34,8 +35,7 @@ public class WxXcxAuthGetAccessTokenRequest implements WxXcxRequestUrl, WxXcxReq
}
}
public
WxXcxAuthGetAccessTokenRes
getResponse
()
{
public
WxXcxAuthGetAccessTokenRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAuthGetAccessTokenRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthGetAccessTokenRes
>()
{
WxXcxAuthGetAccessTokenRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthGetAccessTokenRes
>()
{
});
});
...
@@ -43,4 +43,12 @@ public class WxXcxAuthGetAccessTokenRequest implements WxXcxRequestUrl, WxXcxReq
...
@@ -43,4 +43,12 @@ public class WxXcxAuthGetAccessTokenRequest implements WxXcxRequestUrl, WxXcxReq
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAuthGetAccessTokenReq
req
)
{
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
"grant_type"
,
req
.
getGrant_type
())
.
notBlankCheck
(
"appid"
,
req
.
getAppid
())
.
notBlankCheck
(
"secret"
,
req
.
getSecret
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/user/checkencrypted/WxXcxAuthCheckEncryptedDataRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
user
.
checkencrypted
;
package
com
.
yanzuoguang
.
wxxcx
.
user
.
checkencrypted
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxAuthCheckEncryptedDataRequest implements WxXcxRequestUrl, WxXc
...
@@ -40,8 +41,7 @@ public class WxXcxAuthCheckEncryptedDataRequest implements WxXcxRequestUrl, WxXc
}
}
public
WxXcxAuthCheckEncryptedDataRes
getResponse
()
{
public
WxXcxAuthCheckEncryptedDataRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAuthCheckEncryptedDataRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthCheckEncryptedDataRes
>()
{
WxXcxAuthCheckEncryptedDataRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthCheckEncryptedDataRes
>()
{
});
});
...
@@ -49,4 +49,10 @@ public class WxXcxAuthCheckEncryptedDataRequest implements WxXcxRequestUrl, WxXc
...
@@ -49,4 +49,10 @@ public class WxXcxAuthCheckEncryptedDataRequest implements WxXcxRequestUrl, WxXc
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAuthCheckEncryptedDataReq
req
)
{
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
"encrypted_msg_hash"
,
req
.
getEncrypted_msg_hash
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/user/getphone/WxXcxGetPhoneNumberRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
user
.
getphone
;
package
com
.
yanzuoguang
.
wxxcx
.
user
.
getphone
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxGetPhoneNumberRequest implements WxXcxRequestUrl, WxXcxRequest
...
@@ -40,8 +41,7 @@ public class WxXcxGetPhoneNumberRequest implements WxXcxRequestUrl, WxXcxRequest
}
}
public
WxXcxGetPhoneNumberRes
getResponse
()
{
public
WxXcxGetPhoneNumberRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxGetPhoneNumberRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxGetPhoneNumberRes
>()
{
WxXcxGetPhoneNumberRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxGetPhoneNumberRes
>()
{
});
});
...
@@ -49,4 +49,10 @@ public class WxXcxGetPhoneNumberRequest implements WxXcxRequestUrl, WxXcxRequest
...
@@ -49,4 +49,10 @@ public class WxXcxGetPhoneNumberRequest implements WxXcxRequestUrl, WxXcxRequest
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxGetPhoneNumberReq
req
)
{
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
"code"
,
req
.
getCode
())
.
checkException
();
}
}
}
\ No newline at end of file
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/user/getpluginpid/WxXcxAuthGetPluginOpenPidRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
user
.
getpluginpid
;
package
com
.
yanzuoguang
.
wxxcx
.
user
.
getpluginpid
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxAuthGetPluginOpenPidRequest implements WxXcxRequestUrl, WxXcxR
...
@@ -40,8 +41,7 @@ public class WxXcxAuthGetPluginOpenPidRequest implements WxXcxRequestUrl, WxXcxR
}
}
public
WxXcxAuthGetPluginOpenPidRes
getResponse
()
{
public
WxXcxAuthGetPluginOpenPidRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAuthGetPluginOpenPidRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthGetPluginOpenPidRes
>()
{
WxXcxAuthGetPluginOpenPidRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthGetPluginOpenPidRes
>()
{
});
});
...
@@ -49,4 +49,11 @@ public class WxXcxAuthGetPluginOpenPidRequest implements WxXcxRequestUrl, WxXcxR
...
@@ -49,4 +49,11 @@ public class WxXcxAuthGetPluginOpenPidRequest implements WxXcxRequestUrl, WxXcxR
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAuthGetPluginOpenPidReq
req
)
{
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"code"
,
req
.
getCode
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/user/getunionid/WxXcxAuthGetPaidUnionIdRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
user
.
getunionid
;
package
com
.
yanzuoguang
.
wxxcx
.
user
.
getunionid
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -36,8 +37,7 @@ public class WxXcxAuthGetPaidUnionIdRequest implements WxXcxRequestUrl, WxXcxReq
...
@@ -36,8 +37,7 @@ public class WxXcxAuthGetPaidUnionIdRequest implements WxXcxRequestUrl, WxXcxReq
}
}
public
WxXcxAuthGetPaidUnionIdRes
getResponse
()
{
public
WxXcxAuthGetPaidUnionIdRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxAuthGetPaidUnionIdRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthGetPaidUnionIdRes
>()
{
WxXcxAuthGetPaidUnionIdRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxAuthGetPaidUnionIdRes
>()
{
});
});
...
@@ -45,4 +45,11 @@ public class WxXcxAuthGetPaidUnionIdRequest implements WxXcxRequestUrl, WxXcxReq
...
@@ -45,4 +45,11 @@ public class WxXcxAuthGetPaidUnionIdRequest implements WxXcxRequestUrl, WxXcxReq
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxAuthGetPaidUnionIdReq
req
)
{
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"openid"
,
req
.
getOpenid
())
.
checkException
();
}
}
}
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/user/getuserencryptkey/WxXcxGetUserEncryptKeyRequest.java
View file @
39f68292
package
com
.
yanzuoguang
.
wxxcx
.
user
.
getuserencryptkey
;
package
com
.
yanzuoguang
.
wxxcx
.
user
.
getuserencryptkey
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
import
com.yanzuoguang.wxxcx.base.*
;
...
@@ -40,8 +41,7 @@ public class WxXcxGetUserEncryptKeyRequest implements WxXcxRequestUrl, WxXcxRequ
...
@@ -40,8 +41,7 @@ public class WxXcxGetUserEncryptKeyRequest implements WxXcxRequestUrl, WxXcxRequ
}
}
public
WxXcxGetUserEncryptKeyRes
getResponse
()
{
public
WxXcxGetUserEncryptKeyRes
getResponse
()
{
// todo: 检测参数是否合法
checkParam
(
req
);
// Assert.assertEquals();
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
return
this
.
wxXcxRequest
.
request
(
this
,
response
->
{
WxXcxGetUserEncryptKeyRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxGetUserEncryptKeyRes
>()
{
WxXcxGetUserEncryptKeyRes
ret
=
JsonHelper
.
deserialize
(
response
,
new
TypeReference
<
WxXcxGetUserEncryptKeyRes
>()
{
});
});
...
@@ -49,4 +49,13 @@ public class WxXcxGetUserEncryptKeyRequest implements WxXcxRequestUrl, WxXcxRequ
...
@@ -49,4 +49,13 @@ public class WxXcxGetUserEncryptKeyRequest implements WxXcxRequestUrl, WxXcxRequ
return
ret
;
return
ret
;
});
});
}
}
private
void
checkParam
(
WxXcxGetUserEncryptKeyReq
req
)
{
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
WxXcxAccessTokenField
.
FIELD_ACCESS_TOKEN
,
req
.
getAccess_token
())
.
notBlankCheck
(
"openid"
,
req
.
getOpenid
())
.
notBlankCheck
(
"signature"
,
req
.
getSignature
())
.
notBlankCheck
(
"sig_method"
,
req
.
getSig_method
())
.
checkException
();
}
}
}
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