curl --location --request GET 'http://127.0.0.1/admin/v1/role/list?page=1&per_page=4' \
--header 'Authorization: Bearer <token>'{
"code": 0,
"msg": "OK",
"data": {
"total": 2,
"per_page": 4,
"current_page": 1,
"last_page": 1,
"data": [
{
"id": 3,
"created_at": "2025-05-13 13:59:53",
"updated_at": "2025-05-16 16:11:53",
"pid": 0,
"pids": "0",
"name": "管理员",
"description": "",
"level": 1,
"sort": 100,
"status": 1
},
{
"id": 1,
"created_at": "2025-05-13 13:58:07",
"updated_at": "2025-05-13 14:00:13",
"pid": 0,
"pids": "0",
"name": "管理员",
"description": "",
"level": 1,
"sort": 100,
"status": 1
}
]
},
"cost": "2.943791ms",
"request_id": "582b66ce-4723-453f-aff3-291ed703bd5d"
}