文档
测试

用户管理-多个角色查询用户

POST
/authority/users/findUsersByRole?roleIds=1%2C2

接口描述

通过选中的角色Id进行查询用户

请求参数

参数名
类型
描述
必填
roleIds
String
选中角色的Id ,例如 : 1,2
必填
current
int
示例:0
必填
size
int
示例:0
必填
column
string
示例:string
可选
asc
boolean
示例:true
可选

响应参数JSON

```json { "successful": true, "code": 200, "message": "操作成功!", "timestamp": 1667791103006, "data": { "total": 2, "rows": [ { "id": 2, "nickName": "xiaoliu", "realName": null, "sex": "男", "email": null, "mobile": null, "username": "test001", "birthday": null, "goodAt": null, "occupation": null, "createdTime": null, "workOrderTotal": "0", "key": 0 }, { "id": 3, "nickName": "longge", "realName": null, "sex": "男", "email": null, "mobile": null, "username": "test002", "birthday": null, "goodAt": null, "occupation": null, "createdTime": null, "workOrderTotal": "0", "key": 1 } ] } }

swagger 功能定位

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