格式化开放平台模块代码

This commit is contained in:
Binary Wang
2017-11-14 11:07:31 +08:00
parent 993999735b
commit e00e7bb0ca
20 changed files with 152 additions and 86 deletions

View File

@@ -7,7 +7,8 @@ import java.io.Serializable;
/**
* @author <a href="https://github.com/007gzs">007</a>
*/
public class WxOpenAuthorizerAccessToken implements Serializable{
public class WxOpenAuthorizerAccessToken implements Serializable {
private static final long serialVersionUID = -4069745419280727420L;
private String authorizerAccessToken;

View File

@@ -7,7 +7,8 @@ import java.io.Serializable;
/**
* @author <a href="https://github.com/007gzs">007</a>
*/
public class WxOpenComponentAccessToken implements Serializable{
public class WxOpenComponentAccessToken implements Serializable {
private static final long serialVersionUID = 2134550135400443725L;
private String componentAccessToken;

View File

@@ -9,7 +9,9 @@ import java.util.List;
* @author <a href="https://github.com/007gzs">007</a>
*/
@Data
public class WxOpenAuthorizationInfo implements Serializable{
public class WxOpenAuthorizationInfo implements Serializable {
private static final long serialVersionUID = -8713680081354754208L;
private String authorizerAppid;
private String authorizerAccessToken;
private int expiresIn;

View File

@@ -9,7 +9,9 @@ import java.util.Map;
* @author <a href="https://github.com/007gzs">007</a>
*/
@Data
public class WxOpenAuthorizerInfo implements Serializable{
public class WxOpenAuthorizerInfo implements Serializable {
private static final long serialVersionUID = -5327886953416394738L;
private String nickName;
private String headImg;
private Integer serviceTypeInfo;

View File

@@ -19,7 +19,9 @@ import java.io.Serializable;
*/
@XStreamAlias("xml")
@Data
public class WxOpenXmlMessage implements Serializable{
public class WxOpenXmlMessage implements Serializable {
private static final long serialVersionUID = -5641769554709507771L;
@XStreamAlias("AppId")
@XStreamConverter(value = XStreamCDataConverter.class)
private String appId;
@@ -78,6 +80,7 @@ public class WxOpenXmlMessage implements Serializable{
encryptedXml);
return fromXml(plainText);
}
public static WxMpXmlMessage fromEncryptedMpXml(String encryptedXml,
WxOpenConfigStorage wxOpenConfigStorage, String timestamp, String nonce,
String msgSignature) {
@@ -89,7 +92,7 @@ public class WxOpenXmlMessage implements Serializable{
public static WxOpenXmlMessage fromEncryptedXml(InputStream is,
WxOpenConfigStorage wxOpenConfigStorage, String timestamp, String nonce,
String msgSignature) {
String msgSignature) {
try {
return fromEncryptedXml(IOUtils.toString(is, "UTF-8"), wxOpenConfigStorage,
timestamp, nonce, msgSignature);

View File

@@ -10,7 +10,9 @@ import java.io.Serializable;
* @author <a href="https://github.com/007gzs">007</a>
*/
@Data
public class WxOpenAuthorizerInfoResult implements Serializable{
public class WxOpenAuthorizerInfoResult implements Serializable {
private static final long serialVersionUID = 3166298050833019785L;
private WxOpenAuthorizationInfo authorizationInfo;
private WxOpenAuthorizerInfo authorizerInfo;
}

View File

@@ -8,7 +8,9 @@ import java.io.Serializable;
* @author <a href="https://github.com/007gzs">007</a>
*/
@Data
public class WxOpenAuthorizerOptionResult implements Serializable{
public class WxOpenAuthorizerOptionResult implements Serializable {
private static final long serialVersionUID = 4477837353654658179L;
String authorizerAppid;
String optionName;
String optionValue;

View File

@@ -9,6 +9,8 @@ import java.io.Serializable;
* @author <a href="https://github.com/007gzs">007</a>
*/
@Data
public class WxOpenQueryAuthResult implements Serializable{
public class WxOpenQueryAuthResult implements Serializable {
private static final long serialVersionUID = 2394736235020206855L;
private WxOpenAuthorizationInfo authorizationInfo;
}