提交 | 用户 | 时间
|
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.ExcelIgnoreUnannotated; |
|
7 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
8 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
9 |
import lombok.Data; |
|
10 |
|
|
11 |
import java.time.LocalDateTime; |
|
12 |
import java.util.Set; |
|
13 |
|
|
14 |
@Schema(description = "管理后台 - 用户信息 Response VO") |
|
15 |
@Data |
|
16 |
@ExcelIgnoreUnannotated |
|
17 |
public class UserRespVO{ |
|
18 |
|
|
19 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
20 |
@ExcelProperty("用户编号") |
|
21 |
private Long id; |
|
22 |
|
|
23 |
@Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
24 |
@ExcelProperty("用户名称") |
|
25 |
private String username; |
|
26 |
|
|
27 |
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
28 |
@ExcelProperty("用户昵称") |
|
29 |
private String nickname; |
|
30 |
|
|
31 |
@Schema(description = "备注", example = "我是一个用户") |
|
32 |
private String remark; |
|
33 |
|
|
34 |
@Schema(description = "部门ID", example = "我是一个用户") |
|
35 |
private Long deptId; |
|
36 |
@Schema(description = "部门名称", example = "IT 部") |
|
37 |
@ExcelProperty("部门名称") |
|
38 |
private String deptName; |
|
39 |
|
|
40 |
@Schema(description = "岗位编号数组", example = "1") |
|
41 |
private Set<Long> postIds; |
|
42 |
|
|
43 |
@Schema(description = "用户邮箱", example = "iailab@iocoder.cn") |
|
44 |
@ExcelProperty("用户邮箱") |
|
45 |
private String email; |
|
46 |
|
|
47 |
@Schema(description = "手机号码", example = "15601691300") |
|
48 |
@ExcelProperty("手机号码") |
|
49 |
private String mobile; |
|
50 |
|
|
51 |
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1") |
|
52 |
@ExcelProperty(value = "用户性别", converter = DictConvert.class) |
|
53 |
@DictFormat(DictTypeConstants.USER_SEX) |
|
54 |
private Integer sex; |
|
55 |
|
|
56 |
@Schema(description = "用户头像", example = "https://www.baidu.com/xxx.png") |
|
57 |
private String avatar; |
|
58 |
|
|
59 |
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
60 |
@ExcelProperty(value = "帐号状态", converter = DictConvert.class) |
|
61 |
@DictFormat(DictTypeConstants.COMMON_STATUS) |
|
62 |
private Integer status; |
|
63 |
|
|
64 |
@Schema(description = "最后登录 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "192.168.1.1") |
|
65 |
@ExcelProperty("最后登录IP") |
|
66 |
private String loginIp; |
|
67 |
|
|
68 |
@Schema(description = "最后登录时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
|
69 |
@ExcelProperty("最后登录时间") |
|
70 |
private LocalDateTime loginDate; |
|
71 |
|
|
72 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
|
73 |
private LocalDateTime createTime; |
|
74 |
|
|
75 |
} |