提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.modular.demos.entity; |
懒 |
2 |
|
|
3 |
import cn.afterturn.easypoi.excel.annotation.Excel; |
|
4 |
import com.baomidou.mybatisplus.annotation.*; |
|
5 |
import lombok.Data; |
|
6 |
|
|
7 |
import java.io.Serializable; |
|
8 |
import java.util.Date; |
|
9 |
|
|
10 |
/** |
|
11 |
* <p> |
|
12 |
* 管理员表 |
|
13 |
* </p> |
|
14 |
* |
|
15 |
* @author stylefeng |
|
16 |
* @since 2018-12-07 |
|
17 |
*/ |
|
18 |
@TableName("sys_user") |
|
19 |
@Data |
|
20 |
public class ExcelItem implements Serializable { |
|
21 |
|
|
22 |
private static final long serialVersionUID = 1L; |
|
23 |
|
|
24 |
/** |
|
25 |
* 主键id |
|
26 |
*/ |
|
27 |
@TableId(value = "user_id", type = IdType.ID_WORKER) |
|
28 |
@Excel(name = "用户id") |
|
29 |
private Long userId; |
|
30 |
|
|
31 |
/** |
|
32 |
* 头像 |
|
33 |
*/ |
|
34 |
@TableField("avatar") |
|
35 |
@Excel(name = "头像") |
|
36 |
private String avatar; |
|
37 |
|
|
38 |
/** |
|
39 |
* 账号 |
|
40 |
*/ |
|
41 |
@TableField("account") |
|
42 |
@Excel(name = "账号") |
|
43 |
private String account; |
|
44 |
|
|
45 |
/** |
|
46 |
* 密码 |
|
47 |
*/ |
|
48 |
@TableField("password") |
|
49 |
private String password; |
|
50 |
|
|
51 |
/** |
|
52 |
* md5密码盐 |
|
53 |
*/ |
|
54 |
@TableField("salt") |
|
55 |
private String salt; |
|
56 |
|
|
57 |
/** |
|
58 |
* 名字 |
|
59 |
*/ |
|
60 |
@TableField("name") |
|
61 |
@Excel(name = "姓名") |
|
62 |
private String name; |
|
63 |
|
|
64 |
/** |
|
65 |
* 生日 |
|
66 |
*/ |
|
67 |
@TableField("birthday") |
|
68 |
@Excel(name = "生日") |
|
69 |
private Date birthday; |
|
70 |
|
|
71 |
/** |
|
72 |
* 性别(字典) |
|
73 |
*/ |
|
74 |
@TableField("sex") |
|
75 |
@Excel(name = "性别") |
|
76 |
private String sex; |
|
77 |
|
|
78 |
/** |
|
79 |
* 电子邮件 |
|
80 |
*/ |
|
81 |
@TableField("email") |
|
82 |
@Excel(name = "邮箱") |
|
83 |
private String email; |
|
84 |
|
|
85 |
/** |
|
86 |
* 电话 |
|
87 |
*/ |
|
88 |
@TableField("phone") |
|
89 |
@Excel(name = "电话") |
|
90 |
private String phone; |
|
91 |
|
|
92 |
/** |
|
93 |
* 角色id(多个逗号隔开) |
|
94 |
*/ |
|
95 |
@TableField("role_id") |
|
96 |
@Excel(name = "角色id") |
|
97 |
private String roleId; |
|
98 |
|
|
99 |
/** |
|
100 |
* 部门id(多个逗号隔开) |
|
101 |
*/ |
|
102 |
@TableField("dept_id") |
|
103 |
@Excel(name = "部门id") |
|
104 |
private Long deptId; |
|
105 |
|
|
106 |
/** |
|
107 |
* 状态(字典) |
|
108 |
*/ |
|
109 |
@TableField("status") |
|
110 |
@Excel(name = "状态") |
|
111 |
private String status; |
|
112 |
|
|
113 |
/** |
|
114 |
* 创建时间 |
|
115 |
*/ |
|
116 |
@TableField(value = "create_time", fill = FieldFill.INSERT) |
|
117 |
@Excel(name = "创建时间") |
|
118 |
private Date createTime; |
|
119 |
|
|
120 |
/** |
|
121 |
* 创建人 |
|
122 |
*/ |
|
123 |
@TableField(value = "create_user", fill = FieldFill.INSERT) |
|
124 |
private Long createUser; |
|
125 |
|
|
126 |
/** |
|
127 |
* 更新时间 |
|
128 |
*/ |
|
129 |
@TableField(value = "update_time", fill = FieldFill.UPDATE) |
|
130 |
private Date updateTime; |
|
131 |
|
|
132 |
/** |
|
133 |
* 更新人 |
|
134 |
*/ |
|
135 |
@TableField(value = "update_user", fill = FieldFill.UPDATE) |
|
136 |
private Long updateUser; |
|
137 |
|
|
138 |
/** |
|
139 |
* 乐观锁 |
|
140 |
*/ |
|
141 |
@TableField("version") |
|
142 |
private Integer version; |
|
143 |
|
|
144 |
} |