mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
格式化开放平台模块代码
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user