获取-角色列表
GET
/sys/role获取角色列表
请求参数
Query 参数
page
string
当前页码数
示例值:
1
pagesize
string
必需
当前页面需要的数据条数
示例值:
10
Header 参数
Authorization
string
必需
Bearer token值, 示例值: Bearer fda5da47-c18b-42d7-a8d9-7cc72a10abbd
示例值:
{{Vue2_HR_ACCESS_TOKEN}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
success
boolean
响应状态
true成功 false失败
code
integer
业务状态码
10000成功, 其他失败
data
object
响应数据
total
integer
数据总数
指的在后台数据库里一共有多少条数据匹配
rows
array [object {3}]
角色列表
message
string
响应消息
示例
成功示例
{
"success": true,
"code": 10000,
"data": {
"total": 11,
"rows": [
{
"id": "62a9387eb7aa4705242965b5",
"name": "双方各",
"description": "三个"
},
{
"id": "62a9388fb7aa4705242965b6",
"name": "金域华府",
"description": "固定"
},
{
"id": "62a940d8b7aa4705242981b8",
"name": "低调叼的点点滴滴",
"description": "123115666"
},
{
"id": "62a941dfb7aa4705242981bc",
"name": "周",
"description": "2"
},
{
"id": "62a945b0b7aa4705242981c1",
"name": "1111",
"description": "111"
},
{
"id": "62a945b7b7aa4705242981c2",
"name": "111",
"description": "1111"
},
{
"id": "62a945c3b7aa4705242981c3",
"name": "111",
"description": "111"
},
{
"id": "62a945c7b7aa4705242981c4",
"name": "111",
"description": "111"
},
{
"id": "62a945ccb7aa4705242981c5",
"name": "111",
"description": "11"
},
{
"id": "62a945d2b7aa4705242981c6",
"name": "11",
"description": "11"
}
]
},
"message": "获取角色列表成功"
}
最后修改时间: 2 年前