inleft
2022-02-09 9bcb19959eeb9da9bde2561e7278f6d0a55eb151
commit | author | age
9bcb19 1 /*
I 2 Copyright [2020] [https://www.xiaonuo.vip]
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8   http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
17
18 1.请不要删除和修改根目录下的LICENSE文件。
19 2.请不要删除和修改Snowy源码头部的版权声明。
20 3.请保留源码和相关描述文件的项目出处,作者声明等。
21 4.分发源码时候,请注明软件出处 https://gitee.com/xiaonuobase/snowy
22 5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy
23 6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
24  */
25 package vip.xiaonuo.sys.modular.user.entity;
26
27 import cn.afterturn.easypoi.excel.annotation.Excel;
28 import com.baomidou.mybatisplus.annotation.*;
29 import lombok.Data;
30 import lombok.EqualsAndHashCode;
31 import vip.xiaonuo.core.pojo.base.entity.BaseEntity;
32
33 import java.util.Date;
34
35 /**
36  * 系统用户表
37  *
38  * @author xuyuxiang
39  * @date 2020/3/5 12:25
40  */
41 @EqualsAndHashCode(callSuper = true)
42 @Data
43 @TableName("sys_user")
44 public class SysUser extends BaseEntity {
45
46     /**
47      * 主键
48      */
49     @TableId(type = IdType.ASSIGN_ID)
50     private Long id;
51
52     /**
53      * 账号
54      */
55     @Excel(name = "账号", width = 20)
56     private String account;
57
58     /**
59      * 密码哈希值
60      */
61     private String pwdHashValue;
62
63     /**
64      * 昵称
65      */
66     @Excel(name = "昵称", width = 20)
67     private String nickName;
68
69     /**
70      * 姓名
71      */
72     @Excel(name = "姓名", width = 20)
73     private String name;
74
75     /**
76      * 头像
77      */
78     private Long avatar;
79
80     /**
81      * 生日
82      */
83     @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
84     @Excel(name = "生日", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd", width = 20)
85     private Date birthday;
86
87     /**
88      * 性别(字典 1男 2女 3未知)
89      */
90     @Excel(name = "性别", replace = {"男_1", "女_2"}, width = 20)
91     private Integer sex;
92
93     /**
94      * 邮箱
95      */
96     @Excel(name = "邮箱", width = 30)
97     private String email;
98
99     /**
100      * 手机
101      */
102     @Excel(name = "手机", width = 30)
103     private String phone;
104
105     /**
106      * 电话
107      */
108     @Excel(name = "电话", width = 30)
109     private String tel;
110
111     /**
112      * 最后登陆IP
113      */
114     @Excel(name = "最后登陆IP", width = 30)
115     private String lastLoginIp;
116
117     /**
118      * 最后登陆时间
119      */
120     @Excel(name = "最后登陆时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd HH:mm:ss", width = 30)
121     private Date lastLoginTime;
122
123     /**
124      * 管理员类型(1超级管理员 2非管理员)
125      */
126     @Excel(name = "管理员类型", replace = {"超级管理员_1", "非管理员_2"}, width = 20)
127     private Integer adminType;
128
129     /**
130      * 状态(字典 0正常 1停用 2删除)
131      */
132     @Excel(name = "状态", replace = {"正常_0", "停用_1", "删除_2"}, width = 20)
133     private Integer status;
134
135
136 }