超管后台 - 获取管理员详情返工

This commit is contained in:
柳清爽
2025-04-17 15:55:45 +08:00
parent 61d2dbfeee
commit 58c51f3262
4 changed files with 115 additions and 24 deletions

View File

@@ -120,29 +120,10 @@ class AdministratorController extends Controller
return json([
'code' => 200,
'msg' => '获取成功',
'data' => $data
'data' => array_merge()
]);
}
/**
* 根据权限ID获取角色名称
* @param int $authId 权限ID
* @return string
*/
private function getRoleName($authId)
{
// 可以从权限表中查询,这里为演示简化处理
switch($authId) {
case 1:
return '超级管理员';
case 2:
return '项目管理员';
case 3:
return '客户管理员';
default:
return '普通管理员';
}
}
/**
* 根据权限ID获取权限列表