mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 批量格式化部分代码
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package me.chanjar.weixin.open.bean.ma;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 微信小程序分类目录.
|
||||
*
|
||||
|
||||
@@ -58,48 +58,48 @@ public class WxOpenXmlMessage implements Serializable {
|
||||
|
||||
// 以下为快速创建小程序接口推送的的信息
|
||||
|
||||
@XStreamAlias ("appid")
|
||||
@XStreamAlias("appid")
|
||||
private String registAppId;
|
||||
|
||||
@XStreamAlias ("status")
|
||||
@XStreamAlias("status")
|
||||
private int status;
|
||||
|
||||
@XStreamAlias ("auth_code")
|
||||
@XStreamAlias("auth_code")
|
||||
private String authCode;
|
||||
|
||||
@XStreamAlias ("msg")
|
||||
@XStreamConverter (value = XStreamCDataConverter.class)
|
||||
@XStreamAlias("msg")
|
||||
@XStreamConverter(value = XStreamCDataConverter.class)
|
||||
private String msg;
|
||||
|
||||
@XStreamAlias ("info")
|
||||
@XStreamAlias("info")
|
||||
private Info info = new Info();
|
||||
|
||||
@XStreamAlias ("info")
|
||||
@XStreamAlias("info")
|
||||
@Data
|
||||
public static class Info implements Serializable {
|
||||
private static final long serialVersionUID = 7706235740094081194L;
|
||||
|
||||
@XStreamAlias ("name")
|
||||
@XStreamConverter (value = XStreamCDataConverter.class)
|
||||
@XStreamAlias("name")
|
||||
@XStreamConverter(value = XStreamCDataConverter.class)
|
||||
private String name;
|
||||
|
||||
@XStreamAlias ("code")
|
||||
@XStreamConverter (value = XStreamCDataConverter.class)
|
||||
@XStreamAlias("code")
|
||||
@XStreamConverter(value = XStreamCDataConverter.class)
|
||||
private String code;
|
||||
|
||||
@XStreamAlias ("code_type")
|
||||
@XStreamAlias("code_type")
|
||||
private int codeType;
|
||||
|
||||
@XStreamAlias ("legal_persona_wechat")
|
||||
@XStreamConverter (value = XStreamCDataConverter.class)
|
||||
@XStreamAlias("legal_persona_wechat")
|
||||
@XStreamConverter(value = XStreamCDataConverter.class)
|
||||
private String legalPersonaWechat;
|
||||
|
||||
@XStreamAlias ("legal_persona_name")
|
||||
@XStreamConverter (value = XStreamCDataConverter.class)
|
||||
@XStreamAlias("legal_persona_name")
|
||||
@XStreamConverter(value = XStreamCDataConverter.class)
|
||||
private String legalPersonaName;
|
||||
|
||||
@XStreamAlias ("component_phone")
|
||||
@XStreamConverter (value = XStreamCDataConverter.class)
|
||||
@XStreamAlias("component_phone")
|
||||
@XStreamConverter(value = XStreamCDataConverter.class)
|
||||
private String componentPhone;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,55 +10,55 @@ import lombok.EqualsAndHashCode;
|
||||
* @since 2019/1/23 14:39
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode (callSuper = true)
|
||||
public class WxFastMaAccountBasicInfoResult extends WxOpenResult{
|
||||
private static final long serialVersionUID = - 8713680081353954208L;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WxFastMaAccountBasicInfoResult extends WxOpenResult {
|
||||
private static final long serialVersionUID = -8713680081353954208L;
|
||||
|
||||
/**
|
||||
* 小程序ID
|
||||
*/
|
||||
@SerializedName ("appid")
|
||||
@SerializedName("appid")
|
||||
private String appId;
|
||||
|
||||
/**
|
||||
* 帐号类型(1:订阅号,2:服务号,3:小程序)
|
||||
*/
|
||||
@SerializedName ("account_type")
|
||||
@SerializedName("account_type")
|
||||
private Integer accountType;
|
||||
|
||||
/**
|
||||
* 主体类型(1:企业)
|
||||
*/
|
||||
@SerializedName ("principal_type")
|
||||
@SerializedName("principal_type")
|
||||
private Integer principalType;
|
||||
|
||||
/**
|
||||
* 主体名称
|
||||
*/
|
||||
@SerializedName ("principal_name")
|
||||
@SerializedName("principal_name")
|
||||
private String principalName;
|
||||
|
||||
/**
|
||||
* 实名验证状态(1:实名验证成功,2:实名验证中,3:实名验证失败)调用接口1.1创建帐号时,realname_status会初始化为2对于注册方式为微信认证的帐号,资质认证成功时,realname_status会更新为1 注意!!!当realname_status不为1时,帐号只允许调用本文档内的以下API:(即无权限调用其他API) 微信认证相关接口(参考2.x) 帐号设置相关接口(参考3.x)
|
||||
*/
|
||||
@SerializedName ("realname_status")
|
||||
@SerializedName("realname_status")
|
||||
private Integer realnameStatus;
|
||||
|
||||
|
||||
/**
|
||||
* 微信认证信息
|
||||
*/
|
||||
@SerializedName ("wx_verify_info")
|
||||
@SerializedName("wx_verify_info")
|
||||
private WxVerifyInfo wxVerifyInfo;
|
||||
/**
|
||||
* 功能介绍信息
|
||||
*/
|
||||
@SerializedName ("signature_info")
|
||||
@SerializedName("signature_info")
|
||||
private SignatureInfo signatureInfo;
|
||||
/**
|
||||
* 头像信息
|
||||
*/
|
||||
@SerializedName ("head_image_info")
|
||||
@SerializedName("head_image_info")
|
||||
private HeadImageInfo headImageInfo;
|
||||
|
||||
@Data
|
||||
@@ -66,29 +66,29 @@ public class WxFastMaAccountBasicInfoResult extends WxOpenResult{
|
||||
/**
|
||||
* 是否资质认证(true:是,false:否)若是,拥有微信认证相关的权限
|
||||
*/
|
||||
@SerializedName ("qualification_verify")
|
||||
@SerializedName("qualification_verify")
|
||||
private Boolean qualificationVerify;
|
||||
/**
|
||||
* 是否名称认证(true:是,false:否)对于公众号(订阅号、服务号),是名称认证,微信客户端才会有微信认证打勾的标识。
|
||||
*/
|
||||
@SerializedName ("naming_verify")
|
||||
@SerializedName("naming_verify")
|
||||
private Boolean namingVerify;
|
||||
/**
|
||||
* 是否需要年审(true:是,false:否)(qualification_verify = true时才有该字段)
|
||||
*/
|
||||
@SerializedName ("annual_review")
|
||||
@SerializedName("annual_review")
|
||||
private Boolean annualReview;
|
||||
|
||||
/**
|
||||
* 年审开始时间,时间戳(qualification_verify = true时才有该字段)
|
||||
*/
|
||||
@SerializedName ("annual_review_begin_time")
|
||||
@SerializedName("annual_review_begin_time")
|
||||
private String annualReviewBeginTime;
|
||||
|
||||
/**
|
||||
* 年审截止时间,时间戳(qualification_verify = true时才有该字段)
|
||||
*/
|
||||
@SerializedName ("annual_review_end_time")
|
||||
@SerializedName("annual_review_end_time")
|
||||
private String annualReviewEndTime;
|
||||
}
|
||||
|
||||
@@ -98,17 +98,17 @@ public class WxFastMaAccountBasicInfoResult extends WxOpenResult{
|
||||
/**
|
||||
* 功能介绍
|
||||
*/
|
||||
@SerializedName ("signature")
|
||||
@SerializedName("signature")
|
||||
private String signature;
|
||||
/**
|
||||
* 头像已使用修改次数(本月)
|
||||
*/
|
||||
@SerializedName ("modify_used_count")
|
||||
@SerializedName("modify_used_count")
|
||||
private Integer modifyUsedCount;
|
||||
/**
|
||||
* 头像修改次数总额度(本月)
|
||||
*/
|
||||
@SerializedName ("modify_quota")
|
||||
@SerializedName("modify_quota")
|
||||
private Integer modifyQuota;
|
||||
}
|
||||
|
||||
@@ -118,18 +118,18 @@ public class WxFastMaAccountBasicInfoResult extends WxOpenResult{
|
||||
/**
|
||||
* 头像url
|
||||
*/
|
||||
@SerializedName ("head_image_url")
|
||||
@SerializedName("head_image_url")
|
||||
private String headImageUrl;
|
||||
/**
|
||||
* 头像已使用修改次数(本月)
|
||||
*/
|
||||
@SerializedName ("modify_used_count")
|
||||
@SerializedName("modify_used_count")
|
||||
private Integer modifyUsedCount;
|
||||
|
||||
/**
|
||||
* 头像修改次数总额度(本月)
|
||||
*/
|
||||
@SerializedName ("modify_quota")
|
||||
@SerializedName("modify_quota")
|
||||
private Integer modifyQuota;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,29 +12,29 @@ import java.util.List;
|
||||
* @since 2019/1/26 18:27
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode (callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WxFastMaBeenSetCategoryResult extends WxOpenResult {
|
||||
private static final long serialVersionUID = - 7662344448437700644L;
|
||||
private static final long serialVersionUID = -7662344448437700644L;
|
||||
|
||||
/**
|
||||
* 一个更改周期内可以设置类目的次数
|
||||
*/
|
||||
@SerializedName ("limit")
|
||||
@SerializedName("limit")
|
||||
private int limit;
|
||||
/**
|
||||
* 本更改周期内还可以设置类目的次数
|
||||
*/
|
||||
@SerializedName ("quota")
|
||||
@SerializedName("quota")
|
||||
private int quota;
|
||||
/**
|
||||
* 最多可以设置的类目数量
|
||||
*/
|
||||
@SerializedName ("category_limit")
|
||||
@SerializedName("category_limit")
|
||||
private int categoryLimit;
|
||||
/**
|
||||
* 类目
|
||||
*/
|
||||
@SerializedName ("categories")
|
||||
@SerializedName("categories")
|
||||
private List<CategoriesBean> categories;
|
||||
|
||||
@Data
|
||||
@@ -42,32 +42,32 @@ public class WxFastMaBeenSetCategoryResult extends WxOpenResult {
|
||||
/**
|
||||
* 一级类目ID
|
||||
*/
|
||||
@SerializedName ("first")
|
||||
@SerializedName("first")
|
||||
private int first;
|
||||
/**
|
||||
* 一级类目名称
|
||||
*/
|
||||
@SerializedName ("first_name")
|
||||
@SerializedName("first_name")
|
||||
private String firstName;
|
||||
/**
|
||||
* 二级类目ID
|
||||
*/
|
||||
@SerializedName ("second")
|
||||
@SerializedName("second")
|
||||
private int second;
|
||||
/**
|
||||
* 二级类目名称
|
||||
*/
|
||||
@SerializedName ("second_name")
|
||||
@SerializedName("second_name")
|
||||
private String secondName;
|
||||
/**
|
||||
* 审核状态(1审核中 2审核不通过 3审核通过)
|
||||
*/
|
||||
@SerializedName ("audit_status")
|
||||
@SerializedName("audit_status")
|
||||
private int auditStatus;
|
||||
/**
|
||||
* 审核不通过原因
|
||||
*/
|
||||
@SerializedName ("audit_reason")
|
||||
@SerializedName("audit_reason")
|
||||
private String auditReason;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,25 +2,29 @@ package me.chanjar.weixin.open.bean.result;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 获取账号所有可以设置的类目.
|
||||
*
|
||||
* @author Hipple
|
||||
* @description 获取账号所有可以设置的类目
|
||||
* @since 2019/1/26 18:43
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class WxFastMaCanSetCategoryResult extends WxOpenResult {
|
||||
private static final long serialVersionUID = - 2469386233538980102L;
|
||||
@SerializedName ("errcode")
|
||||
private int errcodeX;
|
||||
@SerializedName ("categories_list")
|
||||
private static final long serialVersionUID = -2469386233538980102L;
|
||||
@SerializedName("errcode")
|
||||
private int errCode;
|
||||
@SerializedName("categories_list")
|
||||
private CategoriesListBean categoriesList;
|
||||
|
||||
@Data
|
||||
public static class CategoriesListBean {
|
||||
private List<CategoriesBean> categories;
|
||||
|
||||
@Data
|
||||
public static class CategoriesBean {
|
||||
private int id;
|
||||
@@ -28,29 +32,29 @@ public class WxFastMaCanSetCategoryResult extends WxOpenResult {
|
||||
private String name;
|
||||
private int level;
|
||||
private int father;
|
||||
@SerializedName ("sensitive_type")
|
||||
@SerializedName("sensitive_type")
|
||||
private int sensitiveType;
|
||||
@SerializedName ("available_for_plugin")
|
||||
@SerializedName("available_for_plugin")
|
||||
private boolean availableForPlugin;
|
||||
@SerializedName ("is_hidden")
|
||||
@SerializedName("is_hidden")
|
||||
private boolean isHidden;
|
||||
private String type;
|
||||
@SerializedName ("need_report")
|
||||
@SerializedName("need_report")
|
||||
private int needReport;
|
||||
@SerializedName ("can_use_cityserivce")
|
||||
private int canUseCityserivce;
|
||||
@SerializedName("can_use_cityserivce")
|
||||
private int canUseCityService;
|
||||
private List<Integer> children;
|
||||
@SerializedName ("type_list")
|
||||
@SerializedName("type_list")
|
||||
private List<?> typeList;
|
||||
@SerializedName ("available_api_list")
|
||||
@SerializedName("available_api_list")
|
||||
private List<?> availableApiList;
|
||||
private List<?> apis;
|
||||
|
||||
@Data
|
||||
public static class QualifyBean {
|
||||
private String remark;
|
||||
@SerializedName ("exter_list")
|
||||
private List<?> exterList;
|
||||
@SerializedName("exter_list")
|
||||
private List<?> externalList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -10,20 +10,20 @@ import lombok.EqualsAndHashCode;
|
||||
* @since 2019/1/26 17:39
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode (callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WxFastMaCheckNickameResult extends WxOpenResult {
|
||||
private static final long serialVersionUID = 8022192589710319473L;
|
||||
|
||||
/**
|
||||
* 审核编号.
|
||||
*/
|
||||
@SerializedName ("hit_condition")
|
||||
@SerializedName("hit_condition")
|
||||
boolean hitCondition;
|
||||
|
||||
/**
|
||||
* 材料说明
|
||||
*/
|
||||
@SerializedName ("wording")
|
||||
@SerializedName("wording")
|
||||
String wording;
|
||||
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import lombok.EqualsAndHashCode;
|
||||
* @description 查询改名状态实体类
|
||||
* @since 2019/1/26 17:52
|
||||
*/
|
||||
@EqualsAndHashCode (callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class WxFastMaQueryNicknameStatusResult extends WxOpenResult {
|
||||
|
||||
@@ -18,26 +18,26 @@ public class WxFastMaQueryNicknameStatusResult extends WxOpenResult {
|
||||
/**
|
||||
* 审核昵称
|
||||
*/
|
||||
@SerializedName ("nickname")
|
||||
@SerializedName("nickname")
|
||||
private String nickname;
|
||||
/**
|
||||
* 审核状态,1:审核中,2:审核失败,3:审核成功
|
||||
*/
|
||||
@SerializedName ("audit_stat")
|
||||
@SerializedName("audit_stat")
|
||||
private int auditStat;
|
||||
/**
|
||||
* 失败原因
|
||||
*/
|
||||
@SerializedName ("fail_reason")
|
||||
@SerializedName("fail_reason")
|
||||
private String failReason;
|
||||
/**
|
||||
* 审核提交时间
|
||||
*/
|
||||
@SerializedName ("create_time")
|
||||
@SerializedName("create_time")
|
||||
private String createTime;
|
||||
/**
|
||||
* 审核提交时间
|
||||
*/
|
||||
@SerializedName ("audit_time")
|
||||
@SerializedName("audit_time")
|
||||
private String auditTime;
|
||||
}
|
||||
|
||||
@@ -10,20 +10,20 @@ import lombok.EqualsAndHashCode;
|
||||
* @since 2019/1/26 17:39
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode (callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WxFastMaSetNickameResult extends WxOpenResult {
|
||||
private static final long serialVersionUID = 8022192589710319473L;
|
||||
|
||||
/**
|
||||
* 审核编号.
|
||||
*/
|
||||
@SerializedName ("audit_id")
|
||||
@SerializedName("audit_id")
|
||||
Long auditId;
|
||||
|
||||
/**
|
||||
* 材料说明
|
||||
*/
|
||||
@SerializedName ("wording")
|
||||
@SerializedName("wording")
|
||||
String wording;
|
||||
|
||||
}
|
||||
|
||||
@@ -11,5 +11,5 @@ import java.util.Map;
|
||||
@Data
|
||||
public class WxOpenAuthorizerListResult {
|
||||
private int totalCount;
|
||||
private List<Map<String,String>> list;
|
||||
private List<Map<String, String>> list;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package me.chanjar.weixin.open.bean.result;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import me.chanjar.weixin.open.bean.ma.WxOpenMaCategory;
|
||||
import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 微信开放平台小程序分类目录列表返回
|
||||
*
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package me.chanjar.weixin.open.bean.result;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 微信开放平台小程序域名设置返回对象.
|
||||
*
|
||||
|
||||
@@ -5,9 +5,6 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 微信开放平台小程序当前分阶段发布详情
|
||||
*/
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package me.chanjar.weixin.open.bean.result;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 微信开放平台小程序第三方提交代码的页面配置列表.
|
||||
*
|
||||
|
||||
@@ -6,6 +6,7 @@ import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* .
|
||||
*
|
||||
* @author yqx
|
||||
* @date 2018/10/3
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user