SystemRoute.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * +----------------------------------------------------------------------
  4. * | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  5. * +----------------------------------------------------------------------
  6. * | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
  7. * +----------------------------------------------------------------------
  8. * | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  9. * +----------------------------------------------------------------------
  10. * | Author: CRMEB Team <admin@crmeb.com>
  11. * +----------------------------------------------------------------------
  12. */
  13. namespace app\adminapi\controller\v1\setting;
  14. use app\adminapi\controller\AuthController;
  15. use app\services\system\SystemRouteServices;
  16. use think\facade\App;
  17. /**
  18. * Class SystemRoute
  19. * @author 等风来
  20. * @email 136327134@qq.com
  21. * @date 2023/4/6
  22. * @package app\adminapi\controller\v1\setting
  23. */
  24. class SystemRoute extends AuthController
  25. {
  26. /**
  27. * SystemRoute constructor.
  28. * @param App $app
  29. * @param SystemRouteServices $services
  30. */
  31. public function __construct(App $app, SystemRouteServices $services)
  32. {
  33. parent::__construct($app);
  34. $this->services = $services;
  35. }
  36. /**
  37. * 同步路由权限
  38. * @param $appName
  39. * @return \think\Response
  40. * @author 等风来
  41. * @email 136327134@qq.com
  42. * @date 2023/4/6
  43. */
  44. public function syncRoute($appName)
  45. {
  46. $this->services->syncRoute($appName);
  47. return app('json')->success();
  48. }
  49. public function index()
  50. {
  51. }
  52. public function create()
  53. {
  54. }
  55. public function save()
  56. {
  57. }
  58. public function update()
  59. {
  60. }
  61. public function delete()
  62. {
  63. }
  64. }