package com.moral.api.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
/**
|
* <p>
|
* 用户表
|
* </p>
|
*
|
* @author moral
|
* @since 2021-03-09
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
public class User extends Model<User> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
|
/**
|
* 是否为admin用户
|
*/
|
private Boolean isAdmin;
|
|
/**
|
* 用户
|
*/
|
private String account;
|
|
/**
|
* 密码
|
*/
|
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
|
private String password;
|
|
/**
|
* 用户名称
|
*/
|
private String userName;
|
|
/**
|
* 组织id
|
*/
|
private Integer organizationId;
|
|
/**
|
* 邮箱
|
*/
|
private String email;
|
|
/**
|
* 手机号
|
*/
|
private String mobile;
|
|
/**
|
* 微信
|
*/
|
private String wechat;
|
|
|
private Integer unitId;
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date createTime;
|
|
/**
|
* 更新时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date updateTime;
|
|
/**
|
* 过期时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
private Date expireTime;
|
|
/**
|
* 是否删除
|
*/
|
private String isDelete;
|
|
|
private String openId;
|
|
@TableField(exist = false)
|
private Integer unitCode;
|
|
|
}
|