1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- 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;
- 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;
- }
- @Override
- protected Serializable pkVal() {
- return this.id;
- }
- @Override
- public String toString() {
- return "User{" +
- "id=" + id +
- ", type=" + type +
- ", voucherId=" + voucherId +
- ", indate=" + indate +
- "}";
- }
- }
|