Matchmaker.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. package com.zhentao.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import lombok.Data;
  8. import java.io.Serializable;
  9. import java.time.LocalDate;
  10. import java.time.LocalDateTime;
  11. /**
  12. * 红娘实体类
  13. */
  14. @Data
  15. @TableName("matchmakers")
  16. public class Matchmaker implements Serializable {
  17. private static final long serialVersionUID = 1L;
  18. /**
  19. * 红娘ID
  20. */
  21. @TableId(value = "matchmaker_id", type = IdType.AUTO)
  22. private Integer matchmakerId;
  23. /**
  24. * 红娘对应的用户ID
  25. */
  26. private Long userId;
  27. /**
  28. * 红娘登录账号
  29. */
  30. private String username;
  31. /**
  32. * 密码(bcrypt)
  33. */
  34. private String password;
  35. /**
  36. * 手机号
  37. */
  38. private String phone;
  39. /**
  40. * 邮箱
  41. */
  42. private String email;
  43. /**
  44. * 真实姓名
  45. */
  46. private String realName;
  47. /**
  48. * 1-男 2-女
  49. */
  50. private Integer gender;
  51. /**
  52. * 出生日期
  53. */
  54. @JsonFormat(pattern = "yyyy-MM-dd")
  55. private LocalDate birthDate;
  56. /**
  57. * 头像URL
  58. */
  59. private String avatarUrl;
  60. /**
  61. * 1-兼职 2-全职
  62. */
  63. private Integer matchmakerType;
  64. /**
  65. * 1-青铜 2-白银 3-黄金 4-铂金 5-钻石
  66. */
  67. private Integer level;
  68. /**
  69. * 成功撮合对数
  70. */
  71. private Integer successCouples;
  72. /**
  73. * 省份ID
  74. */
  75. private Integer provinceId;
  76. /**
  77. * 城市ID
  78. */
  79. private Integer cityId;
  80. /**
  81. * 区域ID
  82. */
  83. private Integer areaId;
  84. /**
  85. * 详细地址
  86. */
  87. private String addressDetail;
  88. /**
  89. * 个人简介
  90. */
  91. private String profile;
  92. /**
  93. * 0-禁用 1-正常 2-离职
  94. */
  95. private Integer status;
  96. /**
  97. * 是否同意收集信息
  98. */
  99. private Boolean consentToCollect;
  100. /**
  101. * 创建时间
  102. */
  103. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  104. private LocalDateTime createdAt;
  105. /**
  106. * 更新时间
  107. */
  108. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  109. private LocalDateTime updatedAt;
  110. /**
  111. * 最后登录时间
  112. */
  113. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  114. private LocalDateTime lastLoginAt;
  115. /**
  116. * 省份名称(非数据库字段)
  117. */
  118. @TableField(exist = false)
  119. private String provinceName;
  120. /**
  121. * 城市名称(非数据库字段)
  122. */
  123. @TableField(exist = false)
  124. private String cityName;
  125. /**
  126. * 区域名称(非数据库字段)
  127. */
  128. @TableField(exist = false)
  129. private String areaName;
  130. /**
  131. * 等级名称(非数据库字段)
  132. */
  133. @TableField(exist = false)
  134. private String levelName;
  135. /**
  136. * 类型名称(非数据库字段)
  137. */
  138. @TableField(exist = false)
  139. private String typeName;
  140. }