| | |
| | | @AllArgsConstructor |
| | | public class OAuth2OpenAccessTokenRespVO { |
| | | |
| | | @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| | | private Long userId; |
| | | |
| | | @Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
| | | @JsonProperty("access_token") |
| | | private String accessToken; |
| | | |
| | | @Schema(description = "刷新令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "nice") |
| | | @JsonProperty("refresh_token") |
| | | private String refreshToken; |
| | | |
| | | @Schema(description = "令牌类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "bearer") |
| | | @JsonProperty("token_type") |
| | | private String tokenType; |
| | | |
| | | @Schema(description = "过期时间,单位:秒", requiredMode = Schema.RequiredMode.REQUIRED, example = "42430") |
| | | @JsonProperty("expires_in") |
| | | private Long expiresIn; |
| | | private Long expiresTime; |
| | | |
| | | @Schema(description = "授权范围,如果多个授权范围,使用空格分隔", example = "user_info") |
| | | private String scope; |