RoleController.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | RXThinkCMF框架 [ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 南京RXThinkCMF研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.rxthink.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: 牧羊人 <1175401194@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace App\Http\Controllers;
  12. use App\Services\RoleService;
  13. /**
  14. * 角色管理-控制器
  15. * @author 牧羊人
  16. * @since 2020/11/11
  17. * Class RoleController
  18. * @package App\Http\Controllers
  19. */
  20. class RoleController extends Backend
  21. {
  22. /**
  23. * 构造函数
  24. * @author 牧羊人
  25. * @since 2020/11/11
  26. * RoleController constructor.
  27. */
  28. public function __construct()
  29. {
  30. parent::__construct();
  31. $this->service = new RoleService();
  32. }
  33. /**
  34. * 获取角色列表
  35. * @return mixed
  36. * @since 2020/11/11
  37. * @author 牧羊人
  38. */
  39. public function getRoleList()
  40. {
  41. $result = $this->service->getRoleList();
  42. return $result;
  43. }
  44. /**
  45. * 获取角色权限列表
  46. * @author 牧羊人
  47. * @since 2020/11/11
  48. */
  49. public function getPermissionList()
  50. {
  51. $result = $this->service->getPermissionList();
  52. return $result;
  53. }
  54. /**
  55. * 保存权限
  56. * @return mixed
  57. * @since 2020/11/11
  58. * @author 牧羊人
  59. */
  60. public function savePermission()
  61. {
  62. $result = $this->service->savePermission();
  63. return $result;
  64. }
  65. }