mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-09-21 02:58:09 +08:00
issue #107 请给实体类加上Serializable
This commit is contained in:
@@ -2,12 +2,14 @@ package me.chanjar.weixin.cp.bean;
|
||||
|
||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 微信部门
|
||||
*
|
||||
* @author Daniel Qian
|
||||
*/
|
||||
public class WxCpDepart {
|
||||
public class WxCpDepart implements Serializable {
|
||||
|
||||
private Integer id;
|
||||
private String name;
|
||||
|
@@ -3,6 +3,7 @@ package me.chanjar.weixin.cp.bean;
|
||||
import me.chanjar.weixin.cp.bean.messagebuilder.*;
|
||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -11,7 +12,7 @@ import java.util.List;
|
||||
* @author Daniel Qian
|
||||
*
|
||||
*/
|
||||
public class WxCpMessage {
|
||||
public class WxCpMessage implements Serializable {
|
||||
|
||||
private String toUser;
|
||||
private String toParty;
|
||||
|
@@ -2,10 +2,12 @@ package me.chanjar.weixin.cp.bean;
|
||||
|
||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by Daniel Qian
|
||||
*/
|
||||
public class WxCpTag {
|
||||
public class WxCpTag implements Serializable {
|
||||
|
||||
private String id;
|
||||
|
||||
|
@@ -2,6 +2,7 @@ package me.chanjar.weixin.cp.bean;
|
||||
|
||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -10,7 +11,7 @@ import java.util.List;
|
||||
*
|
||||
* @author Daniel Qian
|
||||
*/
|
||||
public class WxCpUser {
|
||||
public class WxCpUser implements Serializable {
|
||||
|
||||
private String userId;
|
||||
private String name;
|
||||
|
@@ -10,6 +10,7 @@ import org.apache.commons.io.IOUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -25,7 +26,7 @@ import java.util.List;
|
||||
* @author Daniel Qian
|
||||
*/
|
||||
@XStreamAlias("xml")
|
||||
public class WxCpXmlMessage {
|
||||
public class WxCpXmlMessage implements Serializable {
|
||||
|
||||
///////////////////////
|
||||
// 以下都是微信推送过来的消息的xml的element所对应的属性
|
||||
|
Reference in New Issue
Block a user