123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- package com.hhsx.minigame.entity;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.extension.activerecord.Model;
- import com.baomidou.mybatisplus.annotation.TableId;
- import java.time.LocalDateTime;
- import com.baomidou.mybatisplus.annotation.TableField;
- import java.io.Serializable;
- /**
- * <p>
- *
- * </p>
- *
- * @author 吴涛涛
- * @since 2019-09-18
- */
- @TableName("mini_user")
- public class User extends Model<User> {
- private static final long serialVersionUID=1L;
- /**
- * 用户表主键
- */
- @TableId(value = "id", type = IdType.AUTO)
- private Integer id;
- /**
- * 授权类型0-微信 1-微博
- */
- @TableField("type")
- private Integer type;
- /**
- * 授权id type=0:openid type=1:uid
- */
- @TableField("voucher_id")
- private String voucherId;
- /**
- * 授权时间
- */
- @TableField("indate")
- private LocalDateTime indate;
- /**
- * 微信/微博头像
- */
- @TableField("header_pic")
- private String headerPic;
- /**
- * 微信/微博昵称
- */
- @TableField("nick_name")
- private String nickName;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public Integer getType() {
- return type;
- }
- public void setType(Integer type) {
- this.type = type;
- }
- public String getVoucherId() {
- return voucherId;
- }
- public void setVoucherId(String voucherId) {
- this.voucherId = voucherId;
- }
- public LocalDateTime getIndate() {
- return indate;
- }
- public void setIndate(LocalDateTime indate) {
- this.indate = indate;
- }
- public String getHeaderPic() {
- return headerPic;
- }
- public void setHeaderPic(String headerPic) {
- this.headerPic = headerPic;
- }
- public String getNickName() {
- return nickName;
- }
- public void setNickName(String nickName) {
- this.nickName = nickName;
- }
- @Override
- protected Serializable pkVal() {
- return this.id;
- }
- @Override
- public String toString() {
- return "User{" +
- "id=" + id +
- ", type=" + type +
- ", voucherId=" + voucherId +
- ", indate=" + indate +
- ", headerPic=" + headerPic +
- ", nickName=" + nickName +
- "}";
- }
- }
|