提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.oauth2.vo.open; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.core.KeyValue; |
|
4 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
5 |
import lombok.AllArgsConstructor; |
|
6 |
import lombok.Data; |
|
7 |
import lombok.NoArgsConstructor; |
|
8 |
|
|
9 |
import java.util.List; |
|
10 |
|
|
11 |
@Schema(description = "管理后台 - 授权页的信息 Response VO") |
|
12 |
@Data |
|
13 |
@NoArgsConstructor |
|
14 |
@AllArgsConstructor |
|
15 |
public class OAuth2OpenAuthorizeInfoRespVO { |
|
16 |
|
|
17 |
/** |
|
18 |
* 客户端 |
|
19 |
*/ |
|
20 |
private Client client; |
|
21 |
|
|
22 |
@Schema(description = "scope 的选中信息,使用 List 保证有序性,Key 是 scope,Value 为是否选中", requiredMode = Schema.RequiredMode.REQUIRED) |
|
23 |
private List<KeyValue<String, Boolean>> scopes; |
|
24 |
|
|
25 |
@Data |
|
26 |
@NoArgsConstructor |
|
27 |
@AllArgsConstructor |
|
28 |
public static class Client { |
|
29 |
|
|
30 |
@Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "土豆") |
|
31 |
private String name; |
|
32 |
|
|
33 |
@Schema(description = "应用图标", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com/xx.png") |
|
34 |
private String logo; |
|
35 |
|
|
36 |
} |
|
37 |
|
|
38 |
} |