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.

57 lines
981 B

20 hours ago
meta {
name: 角色统计
type: http
seq: 7
tags: [
generated
]
}
get {
url: {{baseUrl}}/api/roles/stats
body: none
auth: inherit
}
docs {
# 角色统计
`GET /api/roles/stats`
角色统计(总数/启用/停用/零使用)。
## 请求参数
## 请求示例
请求头:Authorization: Bearer {{token}}
GET /api/roles/stats
## 响应 data 结构
| 字段 | 类型 | 说明 |
| --- | --- | --- |
| roleCount | long | 角色总数 |
| enabledCount | long | 启用中角色数(status=null 视为启用) |
| disabledCount | long | 停用角色数 |
| zeroUsageCount | long | 零使用角色数(在职使用人数=0) |
## 响应示例
// 示例数据,字段结构以上表为准,非真实返回
```json
{
"code": 0,
"success": true,
"message": "success",
"data": {
"roleCount": 12,
"enabledCount": 9,
"disabledCount": 3,
"zeroUsageCount": 2
}
}
```
}