提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.oauth2.vo.user; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.AllArgsConstructor; |
|
5 |
import lombok.Data; |
|
6 |
import lombok.NoArgsConstructor; |
|
7 |
|
|
8 |
import java.util.List; |
|
9 |
|
|
10 |
@Schema(description = "管理后台 - OAuth2 获得用户基本信息 Response VO") |
|
11 |
@Data |
|
12 |
@NoArgsConstructor |
|
13 |
@AllArgsConstructor |
|
14 |
public class OAuth2UserInfoRespVO { |
|
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 = "平台") |
|
23 |
private String nickname; |
|
24 |
|
|
25 |
@Schema(description = "用户邮箱", example = "iailab@iocoder.cn") |
|
26 |
private String email; |
|
27 |
@Schema(description = "手机号码", example = "15601691300") |
|
28 |
private String mobile; |
|
29 |
|
|
30 |
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1") |
|
31 |
private Integer sex; |
|
32 |
|
|
33 |
@Schema(description = "用户头像", example = "https://www.baidu.com/xxx.png") |
|
34 |
private String avatar; |
|
35 |
|
|
36 |
/** |
|
37 |
* 所在部门 |
|
38 |
*/ |
|
39 |
private Dept dept; |
|
40 |
|
|
41 |
/** |
|
42 |
* 所属岗位数组 |
|
43 |
*/ |
|
44 |
private List<Post> posts; |
|
45 |
|
|
46 |
@Schema(description = "部门") |
|
47 |
@Data |
|
48 |
public static class Dept { |
|
49 |
|
|
50 |
@Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
51 |
private Long id; |
|
52 |
|
|
53 |
@Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "研发部") |
|
54 |
private String name; |
|
55 |
|
|
56 |
} |
|
57 |
|
|
58 |
@Schema(description = "岗位") |
|
59 |
@Data |
|
60 |
public static class Post { |
|
61 |
|
|
62 |
@Schema(description = "岗位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
63 |
private Long id; |
|
64 |
|
|
65 |
@Schema(description = "岗位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "开发") |
|
66 |
private String name; |
|
67 |
|
|
68 |
} |
|
69 |
|
|
70 |
} |