提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.gateway.filter.security; |
H |
2 |
|
|
3 |
import lombok.Data; |
|
4 |
|
325d2f
|
5 |
import java.time.LocalDateTime; |
e7c126
|
6 |
import java.util.List; |
H |
7 |
import java.util.Map; |
|
8 |
|
|
9 |
/** |
|
10 |
* 登录用户信息 |
|
11 |
* |
|
12 |
* copy from iailab-common-security 的 LoginUser 类 |
|
13 |
* |
|
14 |
* @author iailab |
|
15 |
*/ |
|
16 |
@Data |
|
17 |
public class LoginUser { |
|
18 |
|
|
19 |
/** |
|
20 |
* 用户编号 |
|
21 |
*/ |
|
22 |
private Long id; |
|
23 |
/** |
|
24 |
* 用户类型 |
|
25 |
*/ |
|
26 |
private Integer userType; |
|
27 |
/** |
|
28 |
* 额外的用户信息 |
|
29 |
*/ |
|
30 |
private Map<String, String> info; |
|
31 |
/** |
|
32 |
* 租户编号 |
|
33 |
*/ |
|
34 |
private Long tenantId; |
|
35 |
/** |
|
36 |
* 授权范围 |
|
37 |
*/ |
|
38 |
private List<String> scopes; |
325d2f
|
39 |
/** |
H |
40 |
* 过期时间 |
|
41 |
*/ |
|
42 |
private LocalDateTime expiresTime; |
e7c126
|
43 |
|
H |
44 |
} |