提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.oauth2.vo.open; |
H |
2 |
|
|
3 |
import com.fasterxml.jackson.annotation.JsonProperty; |
|
4 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
5 |
import lombok.AllArgsConstructor; |
|
6 |
import lombok.Data; |
|
7 |
import lombok.NoArgsConstructor; |
|
8 |
|
|
9 |
import java.util.List; |
|
10 |
|
|
11 |
@Schema(description = "管理后台 - 【开放接口】校验令牌 Response VO") |
|
12 |
@Data |
|
13 |
@NoArgsConstructor |
|
14 |
@AllArgsConstructor |
|
15 |
public class OAuth2OpenCheckTokenRespVO { |
|
16 |
|
|
17 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
|
18 |
@JsonProperty("user_id") |
|
19 |
private Long userId; |
|
20 |
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|
21 |
@JsonProperty("user_type") |
|
22 |
private Integer userType; |
|
23 |
@Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
24 |
@JsonProperty("tenant_id") |
|
25 |
private Long tenantId; |
|
26 |
|
|
27 |
@Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "car") |
|
28 |
@JsonProperty("client_id") |
|
29 |
private String clientId; |
|
30 |
@Schema(description = "授权范围", requiredMode = Schema.RequiredMode.REQUIRED, example = "user_info") |
|
31 |
private List<String> scopes; |
|
32 |
|
|
33 |
@Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
|
34 |
@JsonProperty("access_token") |
|
35 |
private String accessToken; |
|
36 |
|
|
37 |
@Schema(description = "过期时间,时间戳 / 1000,即单位:秒", requiredMode = Schema.RequiredMode.REQUIRED, example = "1593092157") |
|
38 |
private Long exp; |
|
39 |
|
|
40 |
} |