You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.3 KiB
65 lines
1.3 KiB
|
20 hours ago
|
meta {
|
||
|
|
name: 资源引用清单
|
||
|
|
type: http
|
||
|
|
seq: 7
|
||
|
|
tags: [
|
||
|
|
generated
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
get {
|
||
|
|
url: {{baseUrl}}/api/resources/references
|
||
|
|
body: none
|
||
|
|
auth: inherit
|
||
|
|
}
|
||
|
|
|
||
|
|
params:query {
|
||
|
|
id: 1
|
||
|
|
}
|
||
|
|
|
||
|
|
docs {
|
||
|
|
# 资源引用清单
|
||
|
|
`GET /api/resources/references`
|
||
|
|
资源引用清单(谁在用这个权限点):列出引用该资源的角色及在职使用人数,供删除/停用前展示。
|
||
|
|
|
||
|
|
## 请求参数
|
||
|
|
|
||
|
|
| 参数 | 类型 | 必填 | 默认 | 说明 |
|
||
|
|
| --- | --- | --- | --- | --- |
|
||
|
|
| id | string | 是 | - | 资源节点 ID |
|
||
|
|
|
||
|
|
## 请求示例
|
||
|
|
|
||
|
|
请求头:Authorization: Bearer {{token}}
|
||
|
|
|
||
|
|
GET /api/resources/references?id=1
|
||
|
|
|
||
|
|
## 响应 data 结构
|
||
|
|
|
||
|
|
| 字段 | 类型 | 说明 |
|
||
|
|
| --- | --- | --- |
|
||
|
|
| [].roleId | string | 引用角色 ID |
|
||
|
|
| [].roleName | string | 角色名称 |
|
||
|
|
| [].roleStatus | string | 角色状态 enabled/disabled(null 视为 enabled) |
|
||
|
|
| [].activeUserCount | long | 该角色在职使用人数 |
|
||
|
|
|
||
|
|
## 响应示例
|
||
|
|
|
||
|
|
// 示例数据,字段结构以上表为准,非真实返回
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"code": 0,
|
||
|
|
"success": true,
|
||
|
|
"message": "success",
|
||
|
|
"data": [
|
||
|
|
{
|
||
|
|
"roleId": "3",
|
||
|
|
"roleName": "销售",
|
||
|
|
"roleStatus": "enabled",
|
||
|
|
"activeUserCount": 5
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
```
|
||
|
|
}
|