提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.user.vo.user; |
H |
2 |
|
|
3 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
4 |
import com.iailab.framework.excel.core.convert.DictConvert; |
|
5 |
import com.iailab.module.system.enums.DictTypeConstants; |
|
6 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
7 |
import lombok.AllArgsConstructor; |
|
8 |
import lombok.Builder; |
|
9 |
import lombok.Data; |
|
10 |
import lombok.NoArgsConstructor; |
|
11 |
import lombok.experimental.Accessors; |
|
12 |
|
|
13 |
/** |
|
14 |
* 用户 Excel 导入 VO |
|
15 |
*/ |
|
16 |
@Data |
|
17 |
@Builder |
|
18 |
@AllArgsConstructor |
|
19 |
@NoArgsConstructor |
|
20 |
@Accessors(chain = false) // 设置 chain = false,避免用户导入有问题 |
|
21 |
public class UserImportExcelVO { |
|
22 |
|
|
23 |
@ExcelProperty("登录名称") |
|
24 |
private String username; |
|
25 |
|
|
26 |
@ExcelProperty("用户名称") |
|
27 |
private String nickname; |
|
28 |
|
|
29 |
@ExcelProperty("部门编号") |
|
30 |
private Long deptId; |
|
31 |
|
|
32 |
@ExcelProperty("用户邮箱") |
|
33 |
private String email; |
|
34 |
|
|
35 |
@ExcelProperty("手机号码") |
|
36 |
private String mobile; |
|
37 |
|
|
38 |
@ExcelProperty(value = "用户性别", converter = DictConvert.class) |
|
39 |
@DictFormat(DictTypeConstants.USER_SEX) |
|
40 |
private Integer sex; |
|
41 |
|
|
42 |
@ExcelProperty(value = "账号状态", converter = DictConvert.class) |
|
43 |
@DictFormat(DictTypeConstants.COMMON_STATUS) |
|
44 |
private Integer status; |
|
45 |
|
|
46 |
} |