jinpengyong
2023-10-20 17c774c9c13febdcff654ffd6bbabd313c37a3ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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;
 
 
}