获取角色列表
POST
/myauth/web/getRoleList只有admin账号有权限使用
请求参数
Header 参数
token
string
必需
登录成功后返回的token
示例值:
123
Body 参数application/json
name
string
角色名称
模糊查询
fromSoftId
integer
所属软件ID
模糊查询,留空则全部软件
discount
integer
折扣
单位百分%,模糊查询
pageIndex
integer
必需
pageSize
integer
必需
orders
array [object {2}]
可选
column
string
字段名
必须严格遵守系统返回的字段名,即原样的驼峰命名法
asc
boolean
是否正序排序
示例
{
"pageIndex": 1,
"pageSize": 10
}
示例代码
返回响应
成功(200)
错误(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
records
array [object {7}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
timestamp
integer
必需
示例成功示例
{
"code": 200,
"success": true,
"msg": "获取成功",
"sign": "",
"result": {
"records": [
{
"id": 1,
"name": "超级管理员",
"fromSoftId": 0,
"meunIds": "[\"59664367-11eb-489e-867d-af6c66129d03\",\"30633357-dd12-415e-8631-660e2aa6b9ad\",\"e70b3176-a2fa-4fc5-90f3-5abd9e2d13b8\",\"e50cadbc-8b2b-4c8f-a262-9da95d3371bb\",\"94beb8ae-a606-4dea-bfa8-57bc734818bf\",\"bcb68a35-eb0f-4696-acd8-3c76897e0f0f\",\"d6321208-4980-46e3-b3d4-ec057009472c\",\"b89eb2d8-40e4-4698-ab5a-ddaed7846ee1\",\"1d3838df-bc61-42e1-a149-dcc2705e2894\",\"5b35fe6a-da5f-46d5-b1ed-076308a38a13\",\"922666ba-1ed1-4b6b-9043-30aeead1eebe\",\"dbe9effe-0dc8-4378-a64c-5bf904ac6fae\",\"a59b674e-8d45-46c2-be6e-ff44d2ee7b86\",\"da3af6df-cd00-4746-b788-bd2dfeab716f\",\"43767678-01c5-4b54-bfac-e108b6ceb32a\",\"d7720078-3b65-4f83-b404-c117e5c46b68\",\"546ea73a-1d46-41f5-bfa6-e646b3e741ae\",\"d27462d2-b316-4983-9066-f283fcf17e46\",\"d58b4547-e20f-4eb9-b7d5-b3195ed5cc18\",\"014bf6d7-cff3-4b61-aa3b-f59cc0dd3235\",\"71eedb8d-ae9e-4958-a351-c8dfb4711f21\",\"9d953050-f354-4e9f-9f15-b91ea6a666f0\",\"23a8778f-9424-449a-a68e-54b12e4c30f3\",\"cd256048-3f8e-4fb7-ada3-55d538ce7611\"]",
"discount": 100,
"fromSoftName": null,
"meunList": [
"59664367-11eb-489e-867d-af6c66129d03",
"30633357-dd12-415e-8631-660e2aa6b9ad",
"e70b3176-a2fa-4fc5-90f3-5abd9e2d13b8",
"e50cadbc-8b2b-4c8f-a262-9da95d3371bb",
"94beb8ae-a606-4dea-bfa8-57bc734818bf",
"bcb68a35-eb0f-4696-acd8-3c76897e0f0f",
"d6321208-4980-46e3-b3d4-ec057009472c",
"b89eb2d8-40e4-4698-ab5a-ddaed7846ee1",
"1d3838df-bc61-42e1-a149-dcc2705e2894",
"5b35fe6a-da5f-46d5-b1ed-076308a38a13",
"922666ba-1ed1-4b6b-9043-30aeead1eebe",
"dbe9effe-0dc8-4378-a64c-5bf904ac6fae",
"a59b674e-8d45-46c2-be6e-ff44d2ee7b86",
"da3af6df-cd00-4746-b788-bd2dfeab716f",
"43767678-01c5-4b54-bfac-e108b6ceb32a",
"d7720078-3b65-4f83-b404-c117e5c46b68",
"546ea73a-1d46-41f5-bfa6-e646b3e741ae",
"d27462d2-b316-4983-9066-f283fcf17e46",
"d58b4547-e20f-4eb9-b7d5-b3195ed5cc18",
"014bf6d7-cff3-4b61-aa3b-f59cc0dd3235",
"71eedb8d-ae9e-4958-a351-c8dfb4711f21",
"9d953050-f354-4e9f-9f15-b91ea6a666f0",
"23a8778f-9424-449a-a68e-54b12e4c30f3",
"cd256048-3f8e-4fb7-ada3-55d538ce7611"
]
},
{
"id": 2,
"name": "代理",
"fromSoftId": 1,
"meunIds": "[\"da3af6df-cd00-4746-b788-bd2dfeab716f\",\"922666ba-1ed1-4b6b-9043-30aeead1eebe\",\"23a8778f-9424-449a-a68e-54b12e4c30f3\",\"cd256048-3f8e-4fb7-ada3-55d538ce7611\"]",
"discount": 90,
"fromSoftName": "MyQQ",
"meunList": [
"da3af6df-cd00-4746-b788-bd2dfeab716f",
"922666ba-1ed1-4b6b-9043-30aeead1eebe",
"23a8778f-9424-449a-a68e-54b12e4c30f3",
"cd256048-3f8e-4fb7-ada3-55d538ce7611"
]
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
},
"timestamp": 1647063430503
}
最后修改时间: 2 年前