提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.api.oauth2.dto; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import java.io.Serializable; |
325d2f
|
7 |
import java.time.LocalDateTime; |
e7c126
|
8 |
import java.util.List; |
H |
9 |
import java.util.Map; |
|
10 |
|
|
11 |
@Schema(description = "RPC 服务 - OAuth2 访问令牌的校验 Response DTO") |
|
12 |
@Data |
|
13 |
public class OAuth2AccessTokenCheckRespDTO implements Serializable { |
|
14 |
|
|
15 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
|
16 |
private Long userId; |
|
17 |
|
|
18 |
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
19 |
private Integer userType; |
|
20 |
|
|
21 |
@Schema(description = "用户信息", example = "{\"nickname\": \"平台\"}") |
|
22 |
private Map<String, String> userInfo; |
|
23 |
|
|
24 |
@Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
25 |
private Long tenantId; |
|
26 |
|
|
27 |
@Schema(description = "授权范围的数组", example = "user_info") |
|
28 |
private List<String> scopes; |
|
29 |
|
325d2f
|
30 |
@Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED) |
H |
31 |
private LocalDateTime expiresTime; |
|
32 |
|
|
33 |
|
e7c126
|
34 |
} |