User.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package com.hhsx.minigame.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.extension.activerecord.Model;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import java.time.LocalDateTime;
  7. import com.baomidou.mybatisplus.annotation.TableField;
  8. import java.io.Serializable;
  9. /**
  10. * <p>
  11. *
  12. * </p>
  13. *
  14. * @author 吴涛涛
  15. * @since 2019-09-18
  16. */
  17. @TableName("mini_user")
  18. public class User extends Model<User> {
  19. private static final long serialVersionUID=1L;
  20. /**
  21. * 用户表主键
  22. */
  23. @TableId(value = "id", type = IdType.AUTO)
  24. private Integer id;
  25. /**
  26. * 授权类型0-微信 1-微博
  27. */
  28. @TableField("type")
  29. private Integer type;
  30. /**
  31. * 授权id type=0:openid type=1:uid
  32. */
  33. @TableField("voucher_id")
  34. private String voucherId;
  35. /**
  36. * 授权时间
  37. */
  38. @TableField("indate")
  39. private LocalDateTime indate;
  40. /**
  41. * 微信/微博头像
  42. */
  43. @TableField("header_pic")
  44. private String headerPic;
  45. /**
  46. * 微信/微博昵称
  47. */
  48. @TableField("nick_name")
  49. private String nickName;
  50. public Integer getId() {
  51. return id;
  52. }
  53. public void setId(Integer id) {
  54. this.id = id;
  55. }
  56. public Integer getType() {
  57. return type;
  58. }
  59. public void setType(Integer type) {
  60. this.type = type;
  61. }
  62. public String getVoucherId() {
  63. return voucherId;
  64. }
  65. public void setVoucherId(String voucherId) {
  66. this.voucherId = voucherId;
  67. }
  68. public LocalDateTime getIndate() {
  69. return indate;
  70. }
  71. public void setIndate(LocalDateTime indate) {
  72. this.indate = indate;
  73. }
  74. public String getHeaderPic() {
  75. return headerPic;
  76. }
  77. public void setHeaderPic(String headerPic) {
  78. this.headerPic = headerPic;
  79. }
  80. public String getNickName() {
  81. return nickName;
  82. }
  83. public void setNickName(String nickName) {
  84. this.nickName = nickName;
  85. }
  86. @Override
  87. protected Serializable pkVal() {
  88. return this.id;
  89. }
  90. @Override
  91. public String toString() {
  92. return "User{" +
  93. "id=" + id +
  94. ", type=" + type +
  95. ", voucherId=" + voucherId +
  96. ", indate=" + indate +
  97. ", headerPic=" + headerPic +
  98. ", nickName=" + nickName +
  99. "}";
  100. }
  101. }