ResultVO getExamRecordDetail(@PathVariable String recordId) { // 定义返回结果 ResultVO resultVO; try { // 调用examService获取考试记录详情 RecordDetailVo recordDetailVo = examService.getRecordDetail(recordId); // 返回成功结果 resultVO = new ResultVO<>(0, "获取考试记录详情成功", recordDetailVo); } catch (Exception e) { // 打印异常信息 e.printStackTrace(); // 返回失败结果 resultVO = new ResultVO<>(-1, "获取考试记录详情失败", null); } // 返回结果 return resultVO; } }