CommonController.php 643 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Http\Controllers\Api\Base;
  3. use App\Http\Controllers\Controller;
  4. use App\Services\Base\UserService;
  5. use Illuminate\Support\Facades\Cache;
  6. use Jiannei\Response\Laravel\Support\Facades\Response;
  7. /**
  8. * 公共管理
  9. */
  10. class CommonController extends Controller
  11. {
  12. /**
  13. * UserController constructor.
  14. *
  15. * @param UserService $userService
  16. */
  17. public function __construct()
  18. {
  19. parent::__construct();
  20. }
  21. /**
  22. * 清空缓存
  23. * @return mixed
  24. * Author: Mead
  25. */
  26. public function clear()
  27. {
  28. // Cache::flush();
  29. return Response::noContent();
  30. }
  31. }