curl --location --request GET 'http://127.0.0.1/admin/v1/department/detail?id=1' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"name": "string",
"desc": "string",
"method": "string",
"route": "string",
"func": "string",
"func_path": "string",
"is_auth": 0,
"sort": 0
}'{
"code": 0,
"msg": "OK",
"data": {
"id": 1,
"pid": 0,
"name": "测试",
"description": "",
"level": 1,
"sort": 100,
"children_num": 0,
"role_list": [],
"user_number": 1,
"created_at": "2025-11-27 14:13:37",
"updated_at": "2025-11-27 14:53:32"
},
"cost": "44.649541ms",
"request_id": "a876e672-bbd5-4dbb-864d-61d23878b4ed"
}