From a9a26fe20f52a763245f09574e8bdd1db01d043c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=82=E5=90=89=E8=AF=83=E5=BE=B7=E6=8B=89=E6=9B=BC?= =?UTF-8?q?=E6=9F=A5=E7=9A=84=E8=8B=B1=E8=B1=AA?= Date: Fri, 7 Aug 2026 16:55:21 +0800 Subject: [PATCH] =?UTF-8?q?ExamService=E8=81=9A=E5=90=88=E8=A1=A5=E9=BD=90?= =?UTF-8?q?V1=E7=BB=83=E4=B9=A0=E4=B8=8E=E8=80=83=E8=AF=95=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ExamService/ExamService.php | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/ExamService/ExamService.php b/src/ExamService/ExamService.php index 16a7fe9..2dca330 100644 --- a/src/ExamService/ExamService.php +++ b/src/ExamService/ExamService.php @@ -33,4 +33,44 @@ interface ExamService extends * 获取用户试卷记录列表. */ public function getUserPaperList(array $params, int $userId): array; + + /** + * 获取练习列表. + */ + public function getPracticeList(int $userId): array; + + /** + * 获取练习详情. + */ + public function getPracticeDetail(int $userId, int $id): array; + + /** + * 提交练习答案. + */ + public function submitPractice(int $userId, int $paperId, array $answers): array; + + /** + * 开始考试(V1 兼容接口). + */ + public function startExam(array $params): array; + + /** + * 提交考试(V1 兼容接口). + */ + public function submitExam(array $params): array; + + /** + * 获取用户考试记录列表(V1 兼容接口). + */ + public function getUserExamRecords(array $params): array; + + /** + * 获取考试记录详情(V1 兼容接口). + */ + public function getExamRecordDetail(int $recordId, int $userId): array; + + /** + * 获取考试记录题目列表(V1 兼容接口). + */ + public function getByRecordId(int $userId, int $recordId): array; }