UserInfoVO.java
1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.youjia.system.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
/**
* 当前登录用户信息。
*/
@Data
@Builder
@Schema(description = "当前登录用户信息")
public class UserInfoVO {
@Schema(description = "用户 ID")
private Long userId;
@Schema(description = "登录账号")
private String account;
@Schema(description = "姓名")
private String name;
@Schema(description = "手机号")
private String mobile;
@Schema(description = "主属组织 ID")
private Long orgId;
@Schema(description = "数据域:1-全部数据 2-本部门及下级 3-本部门 4-仅本人")
private Integer dataScope;
@Schema(description = "数据域名称")
private String dataScopeLabel;
@Schema(description = "角色 ID 集合")
private List<Long> roleIds;
@Schema(description = "角色编码集合")
private List<String> roleCodes;
@Schema(description = "权限码集合")
private List<String> permCodes;
@Schema(description = "本次登录时间")
private LocalDateTime loginAt;
@Schema(description = "会话过期时间")
private LocalDateTime expireAt;
}