This commit is contained in:
@ -63,6 +63,8 @@ class RoleController extends AbstractController
|
||||
// 添加角色.
|
||||
$this->roleServiceInterface->addRole($data);
|
||||
|
||||
$this->opLogs('[添加角色]名称 ' . $params['role_name']);
|
||||
|
||||
return $this->apiResponse->success();
|
||||
}
|
||||
|
||||
@ -79,7 +81,9 @@ class RoleController extends AbstractController
|
||||
'params' => $params
|
||||
];
|
||||
|
||||
$roleList = $this->roleServiceInterface->roleList($data);
|
||||
$rpcResult = $this->roleServiceInterface->roleList($data);
|
||||
|
||||
$roleList = $rpcResult['result'] ?? [];
|
||||
|
||||
return $this->apiResponse->success($roleList);
|
||||
}
|
||||
|
@ -44,4 +44,9 @@ return [
|
||||
'action' => 'RoleController@assignRolePermissions',
|
||||
'name' => '角色授权',
|
||||
],
|
||||
[
|
||||
'id' => 7,
|
||||
'action' => 'RoleController@addRole',
|
||||
'name' => '新增|编辑角色',
|
||||
],
|
||||
];
|
@ -59,7 +59,9 @@ Router::addGroup('/api/v1', function () {
|
||||
Router::post('assign.role.auth', [RoleController::class, 'assignRolePermissions']); # 角色授权
|
||||
Router::post('role.permission.checked', [RoleController::class, 'roleChecked']); # 角色权限选择列表
|
||||
|
||||
// 部门管理
|
||||
/**
|
||||
* 部门管理
|
||||
*/
|
||||
Router::post('dept.add', [DeptController::class, 'addDept']); # 新增部门
|
||||
Router::post('dept.list', [DeptController::class, 'deptList']); # 部门列表
|
||||
Router::post('dept.delete', [DeptController::class, 'delDept']); # 删除部门
|
||||
@ -67,7 +69,9 @@ Router::addGroup('/api/v1', function () {
|
||||
Router::post('dept.list.active', [DeptController::class, 'deptListActive']); # 部门列表(活动)
|
||||
Router::post('dept.update.status', [DeptController::class, 'updateDeptStatus']); # 部门状态
|
||||
|
||||
// 平台公司管理
|
||||
/**
|
||||
* 平台公司管理
|
||||
*/
|
||||
Router::post('company.module.add', [RoleController::class, 'addCompanyModule']); # 公司模块授权
|
||||
Router::post('company.permission.checked', [RoleController::class, 'companyChecked']); # 公司模块选择列表
|
||||
|
||||
|
Reference in New Issue
Block a user