User.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. public Integer getId() {
  41. return id;
  42. }
  43. public void setId(Integer id) {
  44. this.id = id;
  45. }
  46. public Integer getType() {
  47. return type;
  48. }
  49. public void setType(Integer type) {
  50. this.type = type;
  51. }
  52. public String getVoucherId() {
  53. return voucherId;
  54. }
  55. public void setVoucherId(String voucherId) {
  56. this.voucherId = voucherId;
  57. }
  58. public LocalDateTime getIndate() {
  59. return indate;
  60. }
  61. public void setIndate(LocalDateTime indate) {
  62. this.indate = indate;
  63. }
  64. @Override
  65. protected Serializable pkVal() {
  66. return this.id;
  67. }
  68. @Override
  69. public String toString() {
  70. return "User{" +
  71. "id=" + id +
  72. ", type=" + type +
  73. ", voucherId=" + voucherId +
  74. ", indate=" + indate +
  75. "}";
  76. }
  77. }