POST
/system/oauth2Client/queryOauth2ClientPage管理后台OAuth2 客户端表-分页查询
平台与系统 / OAuth2·客户端
基本信息
- 接口状态脚手架生成·未接入前端
- 接口URLPOST
https://dscp-dev.hn12301.net/manage-api/system/oauth2Client/queryOauth2ClientPage - 请求方式
POST - Content-Type
application/json - 暴露渠道管理后台 前缀
/manage-api - 名称来源源码注释
- 调用方本次扫描未发现调用
- 需求上下文
- 维护人 / 最后改动AsiQue 2023-11-25
- 读写数据表
system_oauth2_client反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.system.Oauth2ClientController#queryOauth2ClientPage - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/system/Oauth2ClientController.java:62 - 判定依据
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无(渠道统一鉴权头见《认证方式》) | ||||
Query 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
路径参数及说明
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
Body 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| pageNo | … | 否 | Integer | 当前页面 |
| pageSize | … | 否 | Integer | 每页记录数 |
| orderBy | … | 否 | String | 排序语句 |
| clientId | … | 否 | String | 客户端编号 → system_oauth2_client.client_id |
| secret | … | 否 | String | 客户端密钥 → system_oauth2_client.secret |
| name | … | 否 | String | 应用名 → system_oauth2_client.name |
| logo | … | 否 | String | 应用图标 → system_oauth2_client.logo |
| description | … | 否 | String | 应用描述 → system_oauth2_client.description |
| status | … | 否 | Integer | 状态 → system_oauth2_client.status |
| accessTokenValiditySeconds | … | 否 | Integer | 访问令牌的有效期 → system_oauth2_client.access_token_validity_seconds |
| refreshTokenValiditySeconds | … | 否 | Integer | 刷新令牌的有效期 → system_oauth2_client.refresh_token_validity_seconds |
| redirectUris | … | 否 | String | 可重定向的 URI 地址 → system_oauth2_client.redirect_uris |
| authorizedGrantTypes | … | 否 | String | 授权类型 → system_oauth2_client.authorized_grant_types |
| scopes | … | 否 | String | 授权范围 → system_oauth2_client.scopes |
| autoApproveScopes | … | 否 | String | 自动通过的授权范围 → system_oauth2_client.auto_approve_scopes |
| authorities | … | 否 | String | 权限 → system_oauth2_client.authorities |
| resourceIds | … | 否 | String | 资源 → system_oauth2_client.resource_ids |
| additionalInformation | … | 否 | String | 附加信息 → system_oauth2_client.additional_information |
| idList | … | 否 | List<Long> | id列表 |
| keywords | … | 否 | String | 关键字 |
认证方式
响应参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| list | … | 否 | List<T><Oauth2ClientResponse> | 分页数据集合(元素结构见下一行) |
| id | … | 否 | Long | 编号 → system_oauth2_client.id |
| clientId | … | 否 | String | 客户端编号 → system_oauth2_client.client_id |
| secret | … | 否 | String | 客户端密钥 → system_oauth2_client.secret |
| name | … | 否 | String | 应用名 → system_oauth2_client.name |
| logo | … | 否 | String | 应用图标 → system_oauth2_client.logo |
| description | … | 否 | String | 应用描述 → system_oauth2_client.description |
| status | … | 否 | Integer | 状态 → system_oauth2_client.status |
| accessTokenValiditySeconds | … | 否 | Integer | 访问令牌的有效期 → system_oauth2_client.access_token_validity_seconds |
| refreshTokenValiditySeconds | … | 否 | Integer | 刷新令牌的有效期 → system_oauth2_client.refresh_token_validity_seconds |
| redirectUris | … | 否 | String | 可重定向的 URI 地址 → system_oauth2_client.redirect_uris |
| authorizedGrantTypes | … | 否 | String | 授权类型 → system_oauth2_client.authorized_grant_types |
| scopes | … | 否 | String | 授权范围 → system_oauth2_client.scopes |
| autoApproveScopes | … | 否 | String | 自动通过的授权范围 → system_oauth2_client.auto_approve_scopes |
| authorities | … | 否 | String | 权限 → system_oauth2_client.authorities |
| resourceIds | … | 否 | String | 资源 → system_oauth2_client.resource_ids |
| additionalInformation | … | 否 | String | 附加信息 → system_oauth2_client.additional_information |
| total | … | 否 | Long | 数据总数 |
响应示例
成功响应示例
{
"errcode": 0,
"errmsg": "",
"data": {
"list": "[]",
"id": "1",
"clientId": "\"string\"",
"secret": "\"string\"",
"name": "\"string\"",
"logo": "\"string\"",
"description": "\"string\"",
"status": "1",
"accessTokenValiditySeconds": "1",
"refreshTokenValiditySeconds": "1",
"redirectUris": "\"string\"",
"authorizedGrantTypes": "\"string\""
}
}附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:system_oauth2_client 反查全部引用接口 →
- Oauth2ClientController#queryOauth2ClientPage
- Oauth2ClientService#queryPage(Oauth2ClientServiceImpl)
- Oauth2ClientMapper#queryPage
- BeanUtils.mapPage → Oauth2ClientQuery
逻辑摘要:分页查询(oauth2ClientService.queryPage);入参与返回值经 BeanUtils 做对象/分页映射
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)