mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 10:38:42 +08:00 
			
		
		
		
	修改代码格式使用两个空格
This commit is contained in:
		| @ -12,7 +12,6 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
|  | ||||
| /** | ||||
|  * 微信用户信息 | ||||
|  *  | ||||
|  * @author chanjarster | ||||
|  * | ||||
|  */ | ||||
| @ -40,91 +39,69 @@ public class WxMpUser implements Serializable { | ||||
|   public Boolean getSubscribe() { | ||||
|     return subscribe; | ||||
|   } | ||||
|  | ||||
|   public Boolean isSubscribe() { | ||||
|     return subscribe; | ||||
|   } | ||||
|  | ||||
|   public void setSubscribe(Boolean subscribe) { | ||||
|     this.subscribe = subscribe; | ||||
|   } | ||||
|  | ||||
|   public String getOpenId() { | ||||
|     return openId; | ||||
|   } | ||||
|  | ||||
|   public void setOpenId(String openId) { | ||||
|     this.openId = openId; | ||||
|   } | ||||
|  | ||||
|   public String getNickname() { | ||||
|     return nickname; | ||||
|   } | ||||
|  | ||||
|   public void setNickname(String nickname) { | ||||
|     this.nickname = nickname; | ||||
|   } | ||||
|  | ||||
|   public String getSex() { | ||||
|     return sex; | ||||
|   } | ||||
|  | ||||
|   public void setSex(String sex) { | ||||
|     this.sex = sex; | ||||
|   } | ||||
|  | ||||
|   public String getLanguage() { | ||||
|     return language; | ||||
|   } | ||||
|  | ||||
|   public void setLanguage(String language) { | ||||
|     this.language = language; | ||||
|   } | ||||
|  | ||||
|   public String getCity() { | ||||
|     return city; | ||||
|   } | ||||
|  | ||||
|   public void setCity(String city) { | ||||
|     this.city = city; | ||||
|   } | ||||
|  | ||||
|   public String getProvince() { | ||||
|     return province; | ||||
|   } | ||||
|  | ||||
|   public void setProvince(String province) { | ||||
|     this.province = province; | ||||
|   } | ||||
|  | ||||
|   public String getCountry() { | ||||
|     return country; | ||||
|   } | ||||
|  | ||||
|   public void setCountry(String country) { | ||||
|     this.country = country; | ||||
|   } | ||||
|  | ||||
|   public String getHeadImgUrl() { | ||||
|     return headImgUrl; | ||||
|   } | ||||
|  | ||||
|   public void setHeadImgUrl(String headImgUrl) { | ||||
|     this.headImgUrl = headImgUrl; | ||||
|   } | ||||
|  | ||||
|   public Long getSubscribeTime() { | ||||
|     return subscribeTime; | ||||
|   } | ||||
|  | ||||
|   public void setSubscribeTime(Long subscribeTime) { | ||||
|     this.subscribeTime = subscribeTime; | ||||
|   } | ||||
|  | ||||
|   public String getUnionId() { | ||||
|     return unionId; | ||||
|   } | ||||
|  | ||||
|   public void setUnionId(String unionId) { | ||||
|     this.unionId = unionId; | ||||
|   } | ||||
| @ -141,15 +118,12 @@ public class WxMpUser implements Serializable { | ||||
|   public String getRemark() { | ||||
|     return remark; | ||||
|   } | ||||
|  | ||||
|   public void setRemark(String remark) { | ||||
|     this.remark = remark; | ||||
|   } | ||||
|  | ||||
|   public Integer getGroupId() { | ||||
|     return groupId; | ||||
|   } | ||||
|  | ||||
|   public void setGroupId(Integer groupId) { | ||||
|     this.groupId = groupId; | ||||
|   } | ||||
| @ -159,8 +133,7 @@ public class WxMpUser implements Serializable { | ||||
|   } | ||||
|  | ||||
|   public static List<WxMpUser> fromJsonList(String json) { | ||||
| 		Type collectionType = new TypeToken<List<WxMpUser>>() { | ||||
| 		}.getType(); | ||||
|     Type collectionType = new TypeToken<List<WxMpUser>>() {}.getType(); | ||||
|     Gson gson = WxMpGsonBuilder.INSTANCE.create(); | ||||
|     JsonObject jsonObject = gson.fromJson(json, JsonObject.class); | ||||
|     return gson.fromJson(jsonObject.get("user_info_list"), collectionType); | ||||
| @ -168,8 +141,20 @@ public class WxMpUser implements Serializable { | ||||
|  | ||||
|   @Override | ||||
|   public String toString() { | ||||
| 		return "WxMpUser{" + "subscribe=" + subscribe + ", openId='" + openId + '\'' + ", nickname='" + nickname + '\'' + ", sex='" + sex + '\'' + ", language='" + language + '\'' | ||||
| 				+ ", city='" + city + '\'' + ", province='" + province + '\'' + ", country='" + country + '\'' + ", headImgUrl='" + headImgUrl + '\'' + ", subscribeTime=" + subscribeTime | ||||
| 				+ ", unionId='" + unionId + '\'' + ", remark='" + remark + '\'' + ", groupId='" + groupId + '\'' + '}'; | ||||
|     return "WxMpUser{" + | ||||
|         "subscribe=" + subscribe + | ||||
|         ", openId='" + openId + '\'' + | ||||
|         ", nickname='" + nickname + '\'' + | ||||
|         ", sex='" + sex + '\'' + | ||||
|         ", language='" + language + '\'' + | ||||
|         ", city='" + city + '\'' + | ||||
|         ", province='" + province + '\'' + | ||||
|         ", country='" + country + '\'' + | ||||
|         ", headImgUrl='" + headImgUrl + '\'' + | ||||
|         ", subscribeTime=" + subscribeTime + | ||||
|         ", unionId='" + unionId + '\'' + | ||||
|         ", remark='" + remark + '\'' + | ||||
|         ", groupId='" + groupId + '\'' + | ||||
|         '}'; | ||||
|   } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 aimil
					aimil