提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.user.vo.profile; |
H |
2 |
|
|
3 |
import com.iailab.module.system.controller.admin.dept.vo.dept.DeptSimpleRespVO; |
|
4 |
import com.iailab.module.system.controller.admin.dept.vo.post.PostSimpleRespVO; |
|
5 |
import com.iailab.module.system.controller.admin.permission.vo.role.RoleSimpleRespVO; |
|
6 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
7 |
import lombok.Data; |
|
8 |
|
|
9 |
import java.time.LocalDateTime; |
|
10 |
import java.util.List; |
|
11 |
|
|
12 |
@Data |
|
13 |
@Schema(description = "管理后台 - 用户个人中心信息 Response VO") |
|
14 |
public class UserProfileRespVO { |
|
15 |
|
|
16 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
17 |
private Long id; |
|
18 |
|
|
19 |
@Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
20 |
private String username; |
|
21 |
|
|
22 |
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
23 |
private String nickname; |
|
24 |
|
|
25 |
@Schema(description = "用户邮箱", example = "iailab@iocoder.cn") |
|
26 |
private String email; |
|
27 |
|
|
28 |
@Schema(description = "手机号码", example = "15601691300") |
|
29 |
private String mobile; |
|
30 |
|
|
31 |
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1") |
|
32 |
private Integer sex; |
|
33 |
|
|
34 |
@Schema(description = "用户头像", example = "https://www.baidu.com/xxx.png") |
|
35 |
private String avatar; |
|
36 |
|
|
37 |
@Schema(description = "最后登录 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "192.168.1.1") |
|
38 |
private String loginIp; |
|
39 |
|
|
40 |
@Schema(description = "最后登录时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
|
41 |
private LocalDateTime loginDate; |
|
42 |
|
|
43 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
|
44 |
private LocalDateTime createTime; |
|
45 |
|
|
46 |
/** |
|
47 |
* 所属角色 |
|
48 |
*/ |
|
49 |
private List<RoleSimpleRespVO> roles; |
|
50 |
/** |
|
51 |
* 所在部门 |
|
52 |
*/ |
|
53 |
private DeptSimpleRespVO dept; |
|
54 |
/** |
|
55 |
* 所属岗位数组 |
|
56 |
*/ |
|
57 |
private List<PostSimpleRespVO> posts; |
|
58 |
/** |
|
59 |
* 社交用户数组 |
|
60 |
*/ |
|
61 |
private List<SocialUser> socialUsers; |
|
62 |
|
|
63 |
@Schema(description = "社交用户") |
|
64 |
@Data |
|
65 |
public static class SocialUser { |
|
66 |
|
|
67 |
@Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
|
68 |
private Integer type; |
|
69 |
|
|
70 |
@Schema(description = "社交用户的 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE") |
|
71 |
private String openid; |
|
72 |
|
|
73 |
} |
|
74 |
|
|
75 |
} |