提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.oauth2.vo.client; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import java.time.LocalDateTime; |
|
7 |
import java.util.List; |
|
8 |
|
|
9 |
@Schema(description = "管理后台 - OAuth2 客户端 Response VO") |
|
10 |
@Data |
|
11 |
public class OAuth2ClientRespVO { |
|
12 |
|
|
13 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
14 |
private Long id; |
|
15 |
|
|
16 |
@Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
|
17 |
private String clientId; |
|
18 |
|
|
19 |
@Schema(description = "客户端密钥", requiredMode = Schema.RequiredMode.REQUIRED, example = "fan") |
|
20 |
private String secret; |
|
21 |
|
|
22 |
@Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "土豆") |
|
23 |
private String name; |
|
24 |
|
|
25 |
@Schema(description = "应用图标", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com/xx.png") |
|
26 |
private String logo; |
|
27 |
|
|
28 |
@Schema(description = "应用描述", example = "我是一个应用") |
|
29 |
private String description; |
|
30 |
|
|
31 |
@Schema(description = "状态,参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
32 |
private Integer status; |
|
33 |
|
|
34 |
@Schema(description = "访问令牌的有效期", requiredMode = Schema.RequiredMode.REQUIRED, example = "8640") |
|
35 |
private Integer accessTokenValiditySeconds; |
|
36 |
|
|
37 |
@Schema(description = "刷新令牌的有效期", requiredMode = Schema.RequiredMode.REQUIRED, example = "8640000") |
|
38 |
private Integer refreshTokenValiditySeconds; |
|
39 |
|
|
40 |
@Schema(description = "可重定向的 URI 地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com") |
|
41 |
private List<String> redirectUris; |
|
42 |
|
|
43 |
@Schema(description = "授权类型,参见 OAuth2GrantTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "password") |
|
44 |
private List<String> authorizedGrantTypes; |
|
45 |
|
|
46 |
@Schema(description = "授权范围", example = "user_info") |
|
47 |
private List<String> scopes; |
|
48 |
|
|
49 |
@Schema(description = "自动通过的授权范围", example = "user_info") |
|
50 |
private List<String> autoApproveScopes; |
|
51 |
|
|
52 |
@Schema(description = "权限", example = "system:user:query") |
|
53 |
private List<String> authorities; |
|
54 |
|
|
55 |
@Schema(description = "资源", example = "1024") |
|
56 |
private List<String> resourceIds; |
|
57 |
|
|
58 |
@Schema(description = "附加信息", example = "{yunai: true}") |
|
59 |
private String additionalInformation; |
|
60 |
|
|
61 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
62 |
private LocalDateTime createTime; |
|
63 |
|
|
64 |
} |