package com.mindskip.xzs.domain; import java.io.Serializable; import java.util.Date; /** * @version 2.2.0 * @description: 用户Token * Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司 * @date 2021 /9/7 9:45 */ public class UserToken implements Serializable { private static final long serialVersionUID = -2414443061696200360L; private Integer id; /** * 用户token */ private String token; /** * 用户id */ private Integer userId; /** * 微信openId */ private String wxOpenId; /** * 创建时间 */ private Date createTime; /** * 过期时间 */ private Date endTime; /** * 用户名 */ private String userName; /** * Gets id. * * @return the id */ public Integer getId() { return id; } /** * Sets id. * * @param id the id */ public void setId(Integer id) { this.id = id; } /** * Gets token. * * @return the token */ public String getToken() { return token; } /** * Sets token. * * @param token the token */ public void setToken(String token) { this.token = token == null ? null : token.trim(); } /** * Gets user id. * * @return the user id */ public Integer getUserId() { return userId; } /** * Sets user id. * * @param userId the user id */ public void setUserId(Integer userId) { this.userId = userId; } /** * Gets wx open id. * * @return the wx open id */ public String getWxOpenId() { return wxOpenId; } /** * Sets wx open id. * * @param wxOpenId the wx open id */ public void setWxOpenId(String wxOpenId) { this.wxOpenId = wxOpenId == null ? null : wxOpenId.trim(); } /** * Gets create time. * * @return the create time */ public Date getCreateTime() { return createTime; } /** * Sets create time. * * @param createTime the create time */ public void setCreateTime(Date createTime) { this.createTime = createTime; } /** * Gets end time. * * @return the end time */ public Date getEndTime() { return endTime; } /** * Sets end time. * * @param endTime the end time */ public void setEndTime(Date endTime) { this.endTime = endTime; } /** * Gets user name. * * @return the user name */ public String getUserName() { return userName; } /** * Sets user name. * * @param userName the user name */ public void setUserName(String userName) { this.userName = userName == null ? null : userName.trim(); } }