正在显示
1 个修改的文件
包含
19 行增加
和
13 行删除
| @@ -18,22 +18,26 @@ use Illuminate\Http\Request; | @@ -18,22 +18,26 @@ use Illuminate\Http\Request; | ||
| 18 | class ProjectRoleController extends BaseController | 18 | class ProjectRoleController extends BaseController |
| 19 | { | 19 | { |
| 20 | /** | 20 | /** |
| 21 | - * @name :列表 | ||
| 22 | - * @return json | ||
| 23 | - * @author :liyuhang | ||
| 24 | - * @method | 21 | + * @remark :用户角色列表 |
| 22 | + * @name :lists | ||
| 23 | + * @author :lyh | ||
| 24 | + * @method :post | ||
| 25 | + * @time :2023/6/27 10:47 | ||
| 25 | */ | 26 | */ |
| 26 | public function lists (){ | 27 | public function lists (){ |
| 27 | $roleModel = new ProjectRoleModel(); | 28 | $roleModel = new ProjectRoleModel(); |
| 28 | - $lists = $roleModel->lists($this->map,$this->page,$this->row,$this->order,['*']); | 29 | + $filed = ['id','name','project_id','operator_id','status','created_at','updated_at']; |
| 30 | + $lists = $roleModel->lists($this->map,$this->page,$this->row,$this->order,$filed); | ||
| 29 | $this->response('success',Code::SUCCESS,$lists); | 31 | $this->response('success',Code::SUCCESS,$lists); |
| 30 | } | 32 | } |
| 31 | 33 | ||
| 32 | /** | 34 | /** |
| 33 | - * @name :详情 | ||
| 34 | - * @return void | ||
| 35 | - * @author :liyuhang | ||
| 36 | - * @method | 35 | + * @param ProjectRoleLogic $roleLogic |
| 36 | + * @remark :获取角色详情 | ||
| 37 | + * @name :info | ||
| 38 | + * @author :lyh | ||
| 39 | + * @method :post | ||
| 40 | + * @time :2023/6/27 10:50 | ||
| 37 | */ | 41 | */ |
| 38 | public function info(ProjectRoleLogic $roleLogic){ | 42 | public function info(ProjectRoleLogic $roleLogic){ |
| 39 | $this->request->validate([ | 43 | $this->request->validate([ |
| @@ -47,10 +51,12 @@ class ProjectRoleController extends BaseController | @@ -47,10 +51,12 @@ class ProjectRoleController extends BaseController | ||
| 47 | } | 51 | } |
| 48 | 52 | ||
| 49 | /** | 53 | /** |
| 50 | - * @name :添加角色时获取菜单列表 | ||
| 51 | - * @return void | ||
| 52 | - * @author :liyuhang | ||
| 53 | - * @method | 54 | + * @param ProjectRoleLogic $roleLogic |
| 55 | + * @remark :添加角色时获取菜单列表 | ||
| 56 | + * @name :get_menu | ||
| 57 | + * @author :lyh | ||
| 58 | + * @method :post | ||
| 59 | + * @time :2023/6/27 10:51 | ||
| 54 | */ | 60 | */ |
| 55 | public function get_menu(ProjectRoleLogic $roleLogic){ | 61 | public function get_menu(ProjectRoleLogic $roleLogic){ |
| 56 | $list = $roleLogic->role_get_menu(); | 62 | $list = $roleLogic->role_get_menu(); |
-
请 注册 或 登录 后发表评论