提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.oauth2.vo.token; |
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.time.LocalDateTime; |
|
9 |
|
|
10 |
@Schema(description = "管理后台 - 访问令牌 Response VO") |
|
11 |
@Data |
|
12 |
@NoArgsConstructor |
|
13 |
@AllArgsConstructor |
|
14 |
public class OAuth2AccessTokenRespVO { |
|
15 |
|
|
16 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
17 |
private Long id; |
|
18 |
|
|
19 |
@Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
|
20 |
private String accessToken; |
|
21 |
|
|
22 |
@Schema(description = "刷新令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "nice") |
|
23 |
private String refreshToken; |
|
24 |
|
|
25 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
|
26 |
private Long userId; |
|
27 |
|
|
28 |
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|
29 |
private Integer userType; |
|
30 |
|
|
31 |
@Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|
32 |
private String clientId; |
|
33 |
|
|
34 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
35 |
private LocalDateTime createTime; |
|
36 |
|
|
37 |
@Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
38 |
private LocalDateTime expiresTime; |
|
39 |
|
|
40 |
} |