| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- package com.zhentao.entity;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import lombok.Data;
- import java.io.Serializable;
- import java.time.LocalDate;
- import java.time.LocalDateTime;
- /**
- * 红娘实体类
- */
- @Data
- @TableName("matchmakers")
- public class Matchmaker implements Serializable {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 红娘ID
- */
- @TableId(value = "matchmaker_id", type = IdType.AUTO)
- private Integer matchmakerId;
- /**
- * 红娘对应的用户ID
- */
- private Long userId;
-
- /**
- * 红娘登录账号
- */
- private String username;
-
- /**
- * 密码(bcrypt)
- */
- private String password;
-
- /**
- * 手机号
- */
- private String phone;
-
- /**
- * 邮箱
- */
- private String email;
-
- /**
- * 真实姓名
- */
- private String realName;
-
- /**
- * 1-男 2-女
- */
- private Integer gender;
-
- /**
- * 出生日期
- */
- @JsonFormat(pattern = "yyyy-MM-dd")
- private LocalDate birthDate;
-
- /**
- * 头像URL
- */
- private String avatarUrl;
-
- /**
- * 1-兼职 2-全职
- */
- private Integer matchmakerType;
-
- /**
- * 1-青铜 2-白银 3-黄金 4-铂金 5-钻石
- */
- private Integer level;
-
- /**
- * 成功撮合对数
- */
- private Integer successCouples;
-
- /**
- * 省份ID
- */
- private Integer provinceId;
-
- /**
- * 城市ID
- */
- private Integer cityId;
-
- /**
- * 区域ID
- */
- private Integer areaId;
-
- /**
- * 详细地址
- */
- private String addressDetail;
-
- /**
- * 个人简介
- */
- private String profile;
-
- /**
- * 0-禁用 1-正常 2-离职
- */
- private Integer status;
-
- /**
- * 是否同意收集信息
- */
- private Boolean consentToCollect;
-
- /**
- * 创建时间
- */
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime createdAt;
-
- /**
- * 更新时间
- */
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime updatedAt;
-
- /**
- * 最后登录时间
- */
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime lastLoginAt;
-
- /**
- * 省份名称(非数据库字段)
- */
- @TableField(exist = false)
- private String provinceName;
-
- /**
- * 城市名称(非数据库字段)
- */
- @TableField(exist = false)
- private String cityName;
-
- /**
- * 区域名称(非数据库字段)
- */
- @TableField(exist = false)
- private String areaName;
-
- /**
- * 等级名称(非数据库字段)
- */
- @TableField(exist = false)
- private String levelName;
-
- /**
- * 类型名称(非数据库字段)
- */
- @TableField(exist = false)
- private String typeName;
- }
|