register_logic = new RegisterLogic(); } /** * 获取挂号记录列表 * @param RegisterRequest $request * @param string $patient_id * @return JsonResponse * @throws GeneralException */ public function register(RegisterRequest $request, string $patient_id): JsonResponse { $validated = $request->safe()->only(['date', 'dept_id', 'doctor_id', 'reg_id']); $response = $this->register_logic->register($patient_id, $validated['date'], $validated['dept_id'], $validated['doctor_id'], $validated['reg_id']); return jsonResponse(Response::HTTP_OK, 'success', $response); } }