提交 | 用户 | 时间
|
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 |
@Schema(description = "管理后台 - 【开放接口】访问令牌 Response VO") |
|
10 |
@Data |
|
11 |
@NoArgsConstructor |
|
12 |
@AllArgsConstructor |
|
13 |
public class OAuth2OpenAccessTokenRespVO { |
|
14 |
|
|
15 |
@Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
|
16 |
@JsonProperty("access_token") |
|
17 |
private String accessToken; |
|
18 |
|
|
19 |
@Schema(description = "刷新令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "nice") |
|
20 |
@JsonProperty("refresh_token") |
|
21 |
private String refreshToken; |
|
22 |
|
|
23 |
@Schema(description = "令牌类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "bearer") |
|
24 |
@JsonProperty("token_type") |
|
25 |
private String tokenType; |
|
26 |
|
|
27 |
@Schema(description = "过期时间,单位:秒", requiredMode = Schema.RequiredMode.REQUIRED, example = "42430") |
|
28 |
@JsonProperty("expires_in") |
|
29 |
private Long expiresIn; |
|
30 |
|
|
31 |
@Schema(description = "授权范围,如果多个授权范围,使用空格分隔", example = "user_info") |
|
32 |
private String scope; |
|
33 |
|
|
34 |
} |