ExamineController.php 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Http\Controllers\Admin\Manage;
  3. use App\Http\Controllers\Controller;
  4. use App\Services\Manage\ExamineService;
  5. use Illuminate\Http\Request;
  6. /**
  7. * 考核列表
  8. */
  9. class ExamineController extends Controller
  10. {
  11. /**
  12. * @var ExamineService
  13. */
  14. private $examineService;
  15. /**
  16. * ExamineController constructor.
  17. *
  18. * @param ExamineService $examineService
  19. */
  20. public function __construct(ExamineService $examineService)
  21. {
  22. parent::__construct();
  23. // $this->middleware('checkUserPermission');
  24. $this->examineService = $examineService;
  25. }
  26. /**
  27. * 列表
  28. * @param Request $request
  29. *
  30. * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Resources\Json\JsonResource
  31. * @throws \Prettus\Repository\Exceptions\RepositoryException
  32. */
  33. public function index(Request $request)
  34. {
  35. $examines = $this->examineService->handleList($request);
  36. return $this->response->success($examines);
  37. }
  38. }