From a038c07fbd9ae8f941c2a6152958fe4dae9b324a 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: Tue, 18 Aug 2026 18:51:34 +0800 Subject: [PATCH] =?UTF-8?q?SmartPaper=E5=A5=91=E7=BA=A6=E8=A1=A5=E5=9B=9E?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=AD=94=E6=A1=88=E6=96=B9=E6=B3=95=EF=BC=8C?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=99=BA=E8=83=BD=E7=BB=84=E5=8D=B7=E5=8F=8C?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=93=BE=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ExamService/SmartPaperInterface.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ExamService/SmartPaperInterface.php b/src/ExamService/SmartPaperInterface.php index 8e01149..49ea8a7 100644 --- a/src/ExamService/SmartPaperInterface.php +++ b/src/ExamService/SmartPaperInterface.php @@ -22,6 +22,21 @@ interface SmartPaperInterface */ public function getUserSmartPaperDetail(int $paperRecordId, bool $getCorrect): array; + /** + * 提交题目答案 + * @param array $params 参数:paper_record_id, question_id, user_answer, used_time + * @param int $userId 用户ID + * @return array + */ + public function submitAnswer(array $params, int $userId): array; + + /** + * 提交用户试卷 + * @param array $params 参数:paper_record_id, used_time + * @return array + */ + public function submitUserPaper(array $params): array; + /** * 获取用户试卷历史列表 * @param array $params 参数:campus_id, exam_type_id, page, limit