123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace App\Http\Controllers\Admin\Manage;
- use App\Http\Controllers\Controller;
- use App\Services\Manage\ExamineService;
- use Illuminate\Http\Request;
- /**
- * 考核列表
- */
- class ExamineController extends Controller
- {
- /**
- * @var ExamineService
- */
- private $examineService;
- /**
- * ExamineController constructor.
- *
- * @param ExamineService $examineService
- */
- public function __construct(ExamineService $examineService)
- {
- parent::__construct();
- // $this->middleware('checkUserPermission');
- $this->examineService = $examineService;
- }
- /**
- * 列表
- * @param Request $request
- *
- * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Resources\Json\JsonResource
- * @throws \Prettus\Repository\Exceptions\RepositoryException
- */
- public function index(Request $request)
- {
- $examines = $this->examineService->handleList($request);
- return $this->response->success($examines);
- }
- }
|