mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
#343 小程序模块两个bean添加序列化支持
This commit is contained in:
parent
70f7bd7e7a
commit
6cabfc3e12
@ -3,12 +3,16 @@ package cn.binarywang.wx.miniapp.bean;
|
||||
import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* {"session_key":"nzoqhc3OnwHzeTxJs+inbQ==","expires_in":2592000,"openid":"oVBkZ0aYgDMDIywRdgPW8-joxXc4"}
|
||||
*
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
*/
|
||||
public class WxMaJscode2SessionResult {
|
||||
public class WxMaJscode2SessionResult implements Serializable {
|
||||
private static final long serialVersionUID = -1060216618475607933L;
|
||||
|
||||
@SerializedName("session_key")
|
||||
private String sessionKey;
|
||||
|
||||
|
@ -4,10 +4,14 @@ import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
*/
|
||||
public class WxMaUserInfo {
|
||||
public class WxMaUserInfo implements Serializable {
|
||||
private static final long serialVersionUID = 6719822331555402137L;
|
||||
|
||||
private String openId;
|
||||
private String nickName;
|
||||
private String gender;
|
||||
|
Loading…
Reference in New Issue
Block a user