文档
测试

角色-列表方法

POST
/authority/roles/showRoleList?current=0&size=0&column=string&asc=true

接口描述

查询全部角色,用于公共选择页面

请求参数

参数名
类型
描述
必填
current
int
示例:1
必填
size
int
示例:10
必填
column
string
示例:string
可选
asc
boolean
示例:true
可选
roleName
String
角色名称
可选
roleCode
String
角色编码
可选

响应参数JSON

```json { "successful": true, "code": 200, "message": "操作成功!", "timestamp": 1666318535968, "data": { "records": [ { "id": 1, "createdBy": 0, "createdName": "超级管理员", "createdTime": "2019-10-25 13:46:00", "tenantId": 1, "name": "平台管理员", "code": "PLATFORM_ADMIN", "superRole": true, "description": "平台管理员,拥有所有数据可视权", "readonly": true, "locked": false, "orderBy": 1, "scopeType": 50 }, { "id": 2, "createdBy": 1, "createdName": "租户管理员", "createdTime": "2022-06-07 07:52:29", "tenantId": 1, "name": "租户管理员", "code": "TENANT-ADMIN", "superRole": false, "description": "租户管理员", "readonly": true, "locked": false, "orderBy": 2, "scopeType": 50 } ], "total": 2, "size": 20, "current": 1, "orders": [], "optimizeCountSql": true, "searchCount": true, "countId": null, "maxLimit": null, "pages": 1 } }

Swagger 及其他

![image.png](https://cos.easydoc.net/97781918/files/l9hv54mp.png) ![image.png](https://cos.easydoc.net/97781918/files/l9hv6h6k.png)