|
...
|
...
|
@@ -18,22 +18,26 @@ use Illuminate\Http\Request; |
|
|
|
class ProjectRoleController extends BaseController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @name :列表
|
|
|
|
* @return json
|
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
* @remark :用户角色列表
|
|
|
|
* @name :lists
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/27 10:47
|
|
|
|
*/
|
|
|
|
public function lists (){
|
|
|
|
$roleModel = new ProjectRoleModel();
|
|
|
|
$lists = $roleModel->lists($this->map,$this->page,$this->row,$this->order,['*']);
|
|
|
|
$filed = ['id','name','project_id','operator_id','status','created_at','updated_at'];
|
|
|
|
$lists = $roleModel->lists($this->map,$this->page,$this->row,$this->order,$filed);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :详情
|
|
|
|
* @return void
|
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
* @param ProjectRoleLogic $roleLogic
|
|
|
|
* @remark :获取角色详情
|
|
|
|
* @name :info
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/27 10:50
|
|
|
|
*/
|
|
|
|
public function info(ProjectRoleLogic $roleLogic){
|
|
|
|
$this->request->validate([
|
|
...
|
...
|
@@ -47,10 +51,12 @@ class ProjectRoleController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :添加角色时获取菜单列表
|
|
|
|
* @return void
|
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
* @param ProjectRoleLogic $roleLogic
|
|
|
|
* @remark :添加角色时获取菜单列表
|
|
|
|
* @name :get_menu
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/27 10:51
|
|
|
|
*/
|
|
|
|
public function get_menu(ProjectRoleLogic $roleLogic){
|
|
|
|
$list = $roleLogic->role_get_menu();
|
...
|
...
|
|