提交 | 用户 | 时间
|
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 |
import lombok.experimental.Accessors; |
|
6 |
|
|
7 |
import java.io.Serializable; |
|
8 |
import java.time.LocalDateTime; |
|
9 |
|
|
10 |
@Schema(description = "RPC 服务 - OAuth2 访问令牌的信息 Response DTO") |
|
11 |
@Data |
|
12 |
@Accessors(chain = true) |
|
13 |
public class OAuth2AccessTokenRespDTO implements Serializable { |
|
14 |
|
|
15 |
@Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
|
16 |
private String accessToken; |
|
17 |
|
|
18 |
@Schema(description = "刷新令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "haha") |
|
19 |
private String refreshToken; |
|
20 |
|
|
21 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
|
22 |
private Long userId; |
|
23 |
|
|
24 |
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1" ) |
|
25 |
private Integer userType; |
|
26 |
|
|
27 |
@Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
28 |
private LocalDateTime expiresTime; |
|
29 |
|
|
30 |
} |