whyclxw
2025-05-14 d8e2cd27eed45224faecb07ca45be69bf78611af
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
package com.whyc.pojo.db_user;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
 
import java.util.Date;
 
@Data
@ToString
@TableName(schema = "db_user",value = "tb_user")
public class User{
 
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    private String name;
 
    private String pwd;
 
    private Integer sex;
 
    private String email;
 
    private String phoneNumber;
 
    @ApiModelProperty(value = "账号类型 1:长期,2:临时 ")
    private Integer type;
    @ApiModelProperty(value = "账号状态 1:激活,2:休眠,3:锁定,0:注销")
    private Integer status;
    @ApiModelProperty("临时账号的到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date expirationTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date lastLoginTime;
    @ApiModelProperty("密码更新时间,至少3个月一次")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date passwordUpdateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date lockTime;
    @ApiModelProperty("允许访问ip")
    private String visitIp;
    @ApiModelProperty("允许访问时间区间")
    private String visitTime;
 
    public User() {
    }
 
    public User(Integer id, String name) {
        this.id = id;
        this.name = name;
    }
}